Skip to content

Cache resolved glob results in BTreeSet<PathBuf> for reuse #41

@CodeEnPlace

Description

@CodeEnPlace

Some glob patterns (e.g. source file discovery, mutant file matching) are evaluated repeatedly with the same inputs. We should identify which globs produce stable results within a single run and cache their resolved paths in a BTreeSet<PathBuf> to avoid redundant filesystem walks.

Tasks

  • Audit callsites that evaluate globs (e.g. TwigsIterBuilder, Base::twigs(), Base::mutant_twigs())
  • Identify which are called multiple times with identical parameters during a single bough run
  • Cache results in BTreeSet<PathBuf> at the appropriate level (session, base, or per-invocation)
  • Measure before/after to confirm the improvement matters

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions