• Xiao Shi's avatar
    use F14NodeMap in folly::dynamic · c150d3e6
    Xiao Shi authored
    Summary:
    F14NodeMap is a safe drop-in replacement for std::unordered_map. It is smaller
    than std::unordered_map (32 bytes instead of 56 bytes) and has been shown
    to be faster in many production use cases. This diff replaces the hash table
    inside folly::dynamic. The effect is that sizeof(folly::dynamic) will drop from 64
    bytes to 40 bytes, and use cases that use folly::dynamic as an object may also
    get a CPU win.
    
    Reviewed By: nbronson
    
    Differential Revision: D8299800
    
    fbshipit-source-id: abd0b034537c95f2ccbdf78fe5ae8fe9157f32ac
    c150d3e6
dynamic-inl.h 29.1 KB