sapling/reachabilityindex
Alex Hornby 7562685124 mononoke: improve memory usage on mononoke startup and reduce number of small allocations
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
2019-07-19 04:30:26 -07:00
..
common/src rust: Head start on some upcoming warnings 2019-07-12 00:56:44 -07:00
if mononoke: rename crates to contain underscores instead of dashes 2019-03-06 07:18:28 -08:00
skiplist/src mononoke: improve memory usage on mononoke startup and reduce number of small allocations 2019-07-19 04:30:26 -07:00
src rust: Head start on some upcoming warnings 2019-07-12 00:56:44 -07:00
test-helpers/src mononoke: remove Logger from BlobRepo 2019-07-17 08:31:56 -07:00