PromptShield logo PromptShield
PromptShield WorkspaceAPI DocsVariables

CACHE_SPLIT\_THRESHOLD

const CACHE_SPLIT_THRESHOLD: 1500 = 1500

Defined in: constants.ts:93

File-count threshold for recommending split cache mode.

If total repository file count exceeds this value, split-mode storage is preferred for scalability.

Rationale:

  • Large repositories suffer from single-file rewrite overhead.
  • Split mode reduces contention and memory footprint.

This is a heuristic boundary, not a hard limit.