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

perf(filter): improved handling of non-strict asterisk tags #1050

Merged
merged 6 commits into from
Jul 10, 2024

Conversation

almostinf
Copy link
Member

@almostinf almostinf commented Jul 8, 2024

Improved handling of non-strict asterisk tags

It doesn't make sense to create a new regular expression for tags like tag=~*, tag=~.*, tag!=~* or tag!=~.*, because in such tags it is the fact of presence or absence of a tag that matters, not its value. This can reduce the total number of expensive regexp.MatchString operations in filters

@almostinf almostinf requested a review from a team as a code owner July 8, 2024 13:12
@almostinf
Copy link
Member Author

/build

filter/series_by_tag.go Outdated Show resolved Hide resolved
filter/series_by_tag.go Outdated Show resolved Hide resolved
@almostinf almostinf requested a review from Tetrergeru July 9, 2024 13:22
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 86.66667% with 2 lines in your changes missing coverage. Please review.

Project coverage is 67.55%. Comparing base (1f2b4ac) to head (217c34f).
Report is 28 commits behind head on master.

Files Patch % Lines
filter/series_by_tag.go 86.66% 1 Missing and 1 partial ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1050      +/-   ##
==========================================
- Coverage   67.92%   67.55%   -0.37%     
==========================================
  Files         212      213       +1     
  Lines       12024    12230     +206     
==========================================
+ Hits         8167     8262      +95     
- Misses       3359     3458      +99     
- Partials      498      510      +12     

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

Tetrergeru
Tetrergeru previously approved these changes Jul 9, 2024
@almostinf
Copy link
Member Author

/build

@almostinf almostinf merged commit c191a9b into master Jul 10, 2024
7 checks passed
@almostinf almostinf deleted the perf/asterisk-tag-handling branch July 10, 2024 12:03
Copy link

Build and push Docker images with tag: 2024-07-10.c191a9b

1 similar comment
Copy link

Build and push Docker images with tag: 2024-07-10.c191a9b

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