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

Optimize filtering univariate result for period #391

Merged
merged 1 commit into from
May 24, 2024

Conversation

michael-nml
Copy link
Collaborator

The PerMetricPerColumnResult filter function has a high overhead for selecting a subset of columns or metrics. This overhead is also incurred (and highest) when only filtering for period, as then all columns & metrics will be selected.

This commit adds a short-circuit path to avoid the overhead when only the period requires filtering. For a result with 50 columns and 8 metrics this results in a >100x speed-up when only filtering for period.

The `PerMetricPerColumnResult` filter function has a high overhead for
selecting a subset of columns or metrics. This overhead is also incurred
(and highest) when only filtering for period, as then all columns &
metrics will be selected.

This commit adds a short-circuit path to avoid the overhead when only
the period requires filtering. For a result with 50 columns and 8
metrics this results in a >100x speed-up when only filtering for period.
Copy link

codecov bot commented May 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.52%. Comparing base (da33807) to head (246ca35).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #391   +/-   ##
=======================================
  Coverage   76.52%   76.52%           
=======================================
  Files         110      110           
  Lines        9242     9244    +2     
  Branches     1658     1659    +1     
=======================================
+ Hits         7072     7074    +2     
  Misses       1703     1703           
  Partials      467      467           

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

@nnansters nnansters merged commit 544141d into main May 24, 2024
7 of 8 checks passed
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