Skip to content

Added early exit without doing regex matches for masking pattern layout#587

Merged
RSam25 merged 3 commits intomainfrom
srm-UID2-6477-implement-log-masking-optimization
Jan 12, 2026
Merged

Added early exit without doing regex matches for masking pattern layout#587
RSam25 merged 3 commits intomainfrom
srm-UID2-6477-implement-log-masking-optimization

Conversation

@RSam25
Copy link
Contributor

@RSam25 RSam25 commented Jan 8, 2026

Synthetic benchmarks with different frequency of maskable logs (performance gains increase with higher volumes of logs):
optimized log mask

Tests done:

  • Functionality of function remains unchanged so ran existing unit tests for it
  • Ran in validator (no mismatches)
  • Profiled using JFR. Findings show CPU use share down from 18% to 0.002%

@RSam25 RSam25 merged commit 0a6a027 into main Jan 12, 2026
3 checks passed
@RSam25 RSam25 deleted the srm-UID2-6477-implement-log-masking-optimization branch January 12, 2026 04:13
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.

2 participants