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.
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
COUNT( DISTINCT ...)
for strings (up to 9x faster) #8849Optimize
COUNT( DISTINCT ...)
for strings (up to 9x faster) #8849Changes from 16 commits
9c44d04
6cb8bbe
9d662a7
1744cb3
e3b0568
12cf50c
4f9a3f0
626b1cb
2e80cb7
d2d1d6d
ebb8726
98a9cd1
07831fa
62c8084
e3b65c8
3f0e9a9
4bc483a
0475687
a764e99
bde49c6
a101b62
0f2fa02
489e130
c39988a
0e33b12
b3bcc68
d7efcf6
a80b39c
3e9289a
7b9d067
d405744
3a6a066
f177aed
8640907
214ba5b
1e10b9c
f5e268d
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed to use RawTableAlloc trait
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allow Copy since they are all native types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this significantly faster than hashing the bytes and using one
RawTable
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can still use the short string optimization without the second hash table. I hope to work on this idea this weekend
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed the code to use a single table and that does appear to go signficantly faster