Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regex performance in mask plugin (ignored fields && common match regex) #542

Merged
merged 6 commits into from
Dec 21, 2023

Conversation

DmitryRomanov
Copy link
Collaborator

Description

Here are two improvements for mask plugin:

  • ignored fields in mask plugin
  • compile common match regex (regex_1|regex_2|regex_3) and skip mismatched event before process

plugin/action/mask/mask.go Outdated Show resolved Hide resolved
plugin/action/mask/mask.go Show resolved Hide resolved
plugin/action/mask/mask.go Outdated Show resolved Hide resolved
Copy link

codecov bot commented Nov 23, 2023

Codecov Report

Attention: 10 lines in your changes are missing coverage. Please review.

Comparison is base (43aa597) 69.59% compared to head (1ab6a2b) 69.62%.

Files Patch % Lines
plugin/action/mask/mask.go 75.00% 7 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #542      +/-   ##
==========================================
+ Coverage   69.59%   69.62%   +0.03%     
==========================================
  Files         109      109              
  Lines       11383    11414      +31     
==========================================
+ Hits         7922     7947      +25     
- Misses       2978     2981       +3     
- Partials      483      486       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@DmitryRomanov DmitryRomanov merged commit 7d1a963 into ozontech:master Dec 21, 2023
10 checks passed
@DmitryRomanov DmitryRomanov deleted the regex-performance branch December 21, 2023 05:56
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.

3 participants