Skip to content

perf: cache compiled redact patterns#73

Open
kumarabhirup wants to merge 2 commits into
mainfrom
perf/24-cache-redact-patterns
Open

perf: cache compiled redact patterns#73
kumarabhirup wants to merge 2 commits into
mainfrom
perf/24-cache-redact-patterns

Conversation

@kumarabhirup
Copy link
Copy Markdown
Collaborator

Fixes #24

Caches resolveConfigRedaction() result and compiled RegExp patterns at module level so they're not recompiled on every log line. Adds clearRedactCache() for testing/config-reload.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Redact patterns compiled on every call via resolveConfigRedaction

1 participant