Skip to content

perf(cli): devflow tracker --set reads and parses manifest.json twice #345

Description

@dean0x

Finding

src/cli/commands/tracker.ts:206 reads the manifest to obtain current.provider, then calls syncManifestFeature (src/core/manifest.ts:294), whose first act is a second readManifest + JSON.parse of the same file.

Why deferred

Negligible in absolute terms (small JSON, one-shot CLI command) — reported because init.ts deliberately avoids the same pattern by reusing existingManifest throughout. The only fix is a signature change to syncManifestFeature, which every feature toggle in the CLI calls, for a negligible one-shot gain. Reviewer's own recommendation: "Do not restructure shared plumbing for this alone."

Suggested fix

If touched, syncManifestFeature could take an optional already-read manifest parameter. Not warranted at this severity alone.

References

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tech-debtTechnical debt items to address

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions