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:
parent
f0db730f07
commit
d2bd01eaf1
3 changed files with 81 additions and 27 deletions
|
@ -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()}).
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue