Skip to content

Improved performance of hash functions by avoiding unnecessary instantiation on heap#8

Open
cb1711 wants to merge 3 commits intomohitmv:masterfrom
cb1711:master
Open

Improved performance of hash functions by avoiding unnecessary instantiation on heap#8
cb1711 wants to merge 3 commits intomohitmv:masterfrom
cb1711:master

Conversation

@cb1711
Copy link

@cb1711 cb1711 commented Apr 25, 2024

Existing unit tests pass for this

return quick::HashFunction(v);
size_t hash = quick::HashFunction(i1);
boost::hash_combine(hash, quick::HashFunction(i2));
(void)std::initializer_list<int>{(boost::hash_combine(hash, quick::HashFunction(is)), 0)...};
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might not work prior to c++14

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