MCPcopy Create free account
hub / github.com/codeaashu/claude-code / resetArrays

Method resetArrays

src/native-ts/file-index/index.ts:143–151  ·  view source on GitHub ↗
(paths: string[])

Source from the content-addressed store, hash-verified

141 }
142
143 private resetArrays(paths: string[]): void {
144 const n = paths.length
145 this.paths = paths
146 this.lowerPaths = new Array(n)
147 this.charBits = new Int32Array(n)
148 this.pathLens = new Uint16Array(n)
149 this.readyCount = 0
150 this.topLevelCache = computeTopLevelEntries(paths, TOP_LEVEL_CACHE_LIMIT)
151 }
152
153 // Precompute: lowercase, a–z bitmap, length. Bitmap gives O(1) rejection
154 // of paths missing any needle letter (89% survival for broad queries like

Callers 2

buildAsyncMethod · 0.95
buildIndexMethod · 0.95

Calls 1

computeTopLevelEntriesFunction · 0.85

Tested by

no test coverage detected