mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +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 |
||
---|---|---|
.. | ||
config | ||
fuse | ||
inodes | ||
journal | ||
model | ||
rocksdb | ||
service | ||
sqlite | ||
store | ||
takeover | ||
testharness | ||
utils | ||
CMakeLists.txt |