Reduce claimtrie temp allocs. #51

Open
moodyjon wants to merge 4 commits from moodyjon/claimtrie_temp_allocs into master

4 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