MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / getDeprioritizedPathSnapshot

Method getDeprioritizedPathSnapshot

src/db/queries.ts:704–707  ·  view source on GitHub ↗

* The `deprioritize` predicate with the project's patterns read once, for a * loop that asks about many paths. The plain predicate re-checks * `codegraph.json` on every call, which a long query's candidate loops made * hundreds of thousands of times (#2620).

()

Source from the content-addressed store, hash-verified

702 * hundreds of thousands of times (#2620).
703 */
704 getDeprioritizedPathSnapshot(): ((filePath: string) => boolean) | undefined {
705 const matcher = this.isDeprioritizedPath as DeprioritizedPathMatcher | undefined;
706 return matcher?.snapshot ? matcher.snapshot() : matcher;
707 }
708
709 // ===========================================================================
710 // Node Operations

Callers 2

searchNodesMethod · 0.95
deprioritizedPathsMethod · 0.80

Calls 1

snapshotMethod · 0.80

Tested by

no test coverage detected