-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[optimization] avoid extra memory copy while build hash table #5301
Conversation
7b86ef7
to
4c102ea
Compare
// TODO: integrate with mem pools | ||
uint8_t* _nodes; | ||
// Buffer to store node data. | ||
uint8_t* _current_nodes; | ||
// number of nodes stored (i.e. size of hash table) | ||
int64_t _num_nodes; |
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.
int64_t _num_nodes; | |
int64_t _total_used; |
Easier to understand
Co-authored-by: wangbo <506340561@qq.com>
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.
LGTM
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.
+1
…#5301) avoid extra memory copy while build hash table
Proposed changes
avoid extra memory copy while build hash table
reference to #5300
Types of changes
Checklist
Further comments
This modification may have a performance improvement of more than 25% during the hash table construction phase.