mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 12:44:59 +00:00
test(perf): cache redact hints and tune guardrail scan concurrency
This commit is contained in:
@@ -22,7 +22,7 @@ const DEFAULT_GUARDRAIL_SKIP_PATTERNS = [
|
||||
];
|
||||
|
||||
const runtimeSourceGuardrailCache = new Map<string, Promise<RuntimeSourceGuardrailFile[]>>();
|
||||
const FILE_READ_CONCURRENCY = 32;
|
||||
const FILE_READ_CONCURRENCY = 16;
|
||||
|
||||
export function shouldSkipGuardrailRuntimeSource(relativePath: string): boolean {
|
||||
return DEFAULT_GUARDRAIL_SKIP_PATTERNS.some((pattern) => pattern.test(relativePath));
|
||||
|
||||
Reference in New Issue
Block a user