mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
e03b717a45
Summary: In D10384953 I learned that std::unordered_map<Hash, V> V for any V would waste storage by storing the hash result in each hash node. This is especially silly because the hash function of std::Hash is as simple as loading the first word from memory. Marking the hash function as noexcept reduces the node size for std::unordered_map<Hash, BlobMetadata> from 72 to 64, making it fit cleanly in one of jemalloc's slabs. Reviewed By: strager Differential Revision: D10385972 fbshipit-source-id: 7a3da5d09be0650ad43849e6d82334b44f3582a3 |
||
---|---|---|
.. | ||
git | ||
test | ||
Blob.h | ||
CMakeLists.txt | ||
Hash.cpp | ||
Hash.h | ||
ParentCommits.cpp | ||
ParentCommits.h | ||
Tree.cpp | ||
Tree.h | ||
TreeEntry.cpp | ||
TreeEntry.h |