Add fast fail to skiplist

Add a bloom filter to the skiplist, to make it faster at returning not
found.  The SkipList is now encapsulated within a dict().
This commit is contained in:
martinsumner 2016-12-09 18:30:40 +00:00
parent f0db730f07
commit d2bd01eaf1
3 changed files with 81 additions and 27 deletions

View file

@ -151,7 +151,7 @@
-record(state, {inker :: pid(),
penciller :: pid(),
cache_size :: integer(),
ledger_cache :: list(), % a skiplist
ledger_cache :: dict:dict(), % a skiplist
is_snapshot :: boolean(),
slow_offer = false :: boolean()}).