mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
7562685124
Summary: Improve memory usage on mononoke startup and reduce number of small allocations. Done via: * Pre-size CHashMap used by SkiplistEdgeMapping, working around the 4x multiplier and lack of load factor awareness in CHashMap::with_capacity * Add a SingleEdge optimization to SkiplistNodeType so as to save vector overhead in the case of one edge ( this is the common case ) * Size the HashMap in rust thrift deserialization with HashMap::with_capacity Reviewed By: krallin Differential Revision: D16265993 fbshipit-source-id: 99c3a7149493d824a3c00540bc5557410d0273fc |
||
---|---|---|
.. | ||
context/src | ||
repo_listener/src | ||
src | ||
Cargo.toml |