sapling/asyncmemo
Stanislau Hlebik 9ba06ebc3c asyncmemo: remove entry with the same key before inserting new one
Summary:
There was a bug when if the entry with the same key is present in the hash and
the hash is full, then some entry will be evicted even though it's not
necessary.
It adds one hash map lookup, but it shouldn't be a big problem

Reviewed By: jsgf

Differential Revision: D6702001

fbshipit-source-id: 1c8cadc5e4bad6f6d95279b21edf00ed99f62c49
2018-01-19 01:10:27 -08:00
..
src asyncmemo: remove entry with the same key before inserting new one 2018-01-19 01:10:27 -08:00