-
Notifications
You must be signed in to change notification settings - Fork 5.5k
stats: optimize stats-matchers instantiated with "prefix." pattern, to avoid having to do toString() mapping and caching #17018
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
Merged
Merged
Changes from 15 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
5c29ac0
add API to do a symbolic prefix match on StatNames without taking a l…
jmarantz b134c93
add prefix-optimized stats_matcher impl.
jmarantz 68b7d41
Use the new stats-matcher API that optikmizes for prefixes.
jmarantz f5068cc
Skip remembering rejected stats when specified cheaply.
jmarantz bb11ad9
add unit tests showing memory benefit, and benchmark tests showing CP…
jmarantz 7dc0ff0
Merge branch 'main' into stat-name-prefix-match
jmarantz b6a4edb
add missing arg.
jmarantz c7a1147
NOLINT for clang-tidy nits
jmarantz 2dd3d57
short-circuit more code that doesn't need to run for stats that are r…
jmarantz d338dae
Merge branch 'main' into stat-name-prefix-match
jmarantz 8add54b
Fix spelling and simplify the comment.
jmarantz bfd6241
cleanup and add tests.
jmarantz b738222
Remove StatMatcher::hasStringMatchers which is no longer needed.
jmarantz 051f412
improve commenting
jmarantz b1d572d
Merge branch 'main' into stat-name-prefix-match
jmarantz 7dd1905
Merge branch 'main' into stat-name-prefix-match
jmarantz 1ff784f
introduce an intermediate result resulted by fastRejects() and requir…
jmarantz 5d4668f
Merge branch 'main' into stat-name-prefix-match
jmarantz 60e8c00
Cleanup comments.
jmarantz fa7c3ca
Switch from a class to an enum for FastResult; it's a bit cleaner.
jmarantz 8dd325e
fast-reject the RejectsAll case, and test for that.
jmarantz 2b21989
Merge branch 'main' into stat-name-prefix-match
jmarantz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.