Commit graph

10 commits

Author SHA1 Message Date
Jonathan Moody
787098e2a2 Integrate "reuse claim memory" with node cache. Return claims to claimPool when Node refcnt drops to zero. 2022-06-06 17:56:45 -04:00
Brannon King
8482890759 reuse claim memory 2022-06-06 17:56:45 -04:00
Jonathan Moody
4df58bb2d6 Use map[ClaimID] instead of map[string] since conversion ClaimID -> string entails lots of temporary allocations. 2022-06-06 17:56:45 -04:00
Jonathan Moody
4159712b92 Add Pool for []Change returned by LoadChanges(name []byte).
Return []Changes and a "closer" func to return them to Pool.
Update tests for LoadChanges new return values.
2022-06-06 17:56:45 -04:00
Jonathan Moody
5f7b1f1b4f Copy value received by MergeOlder/MergeNewer so caller can't trash the merge result by modifying the contents. 2022-06-06 14:12:30 -07:00
Jonathan Moody
0241e18f42 Harden Marshal/Unmarshal logic for Change.SpentChildren. 2022-06-06 14:12:30 -07:00
Brannon King
b06df3d750 added buffer pool for pebble merge string 2022-06-06 14:12:30 -07:00
Brannon King
8f95946b17 [lbry] claimtrie: created node cache 2022-05-26 22:04:33 -07:00
Roy Lee
6e36118193
[lbry] claimtrie: update CLI to support other tools
- fix default app dir name
- enable debug level for cli
- block sub command to output hash, height, or both
2022-05-26 21:52:15 -07:00
Roy Lee
6828cf5e36 [lbry] claimtrie: import current snapshot
Sync to tip

Co-authored-by: Brannon King <countprimes@gmail.com>
2022-05-23 23:53:30 -07:00