Skip to content

perf: bake the build-time placeholder manifest into the Nix image #718

Closed

Description

@c-vigo

Context

Follow-up from #625 / PR #670. init-workspace.sh substitutes template placeholders using a build-time manifest (.placeholder-manifest.txt at SCRIPT_DIR) when present, else falls back to a runtime find+grep search ("Warning: Manifest not found, searching at runtime (slower)"). The fast baked manifest the comment promises is never generated for the Nix image, so workspace init always takes the slow path.

Proposed work

  • Generate .placeholder-manifest.txt during the Nix image build (flake.nix buildLayeredImage) so init-workspace.sh uses the fast path.
  • Functional-only optimization; the runtime fallback already produces correct output.

Refs: #625

Activity

  1. added
    priority:low
    area:workspace
    on Jun 26, 2026
  2. c-vigo commented on Jul 3, 2026

    @c-vigo
    ContributorAuthor

    Resolved by #802 (merged to dev). The Nix image build now bakes .placeholder-manifest.txt into the bootstrap layer (deterministic grep -rl + sort), so init-workspace.sh takes the fast substitution path instead of the slow runtime find+grep. Guarded by a new test_placeholder_manifest_baked image test.

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

    area:workspacepriority:low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions