Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce claimtrie temp allocs. #51

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on Jun 6, 2022

  1. 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.
    moodyjon committed Jun 6, 2022
    Configuration menu
    Copy the full SHA
    4159712 View commit details
    Browse the repository at this point in the history
  2. Use map[ClaimID] instead of map[string] since conversion ClaimID -> s…

    …tring entails lots of temporary allocations.
    moodyjon committed Jun 6, 2022
    Configuration menu
    Copy the full SHA
    4df58bb View commit details
    Browse the repository at this point in the history
  3. reuse claim memory

    BrannonKing authored and moodyjon committed Jun 6, 2022
    Configuration menu
    Copy the full SHA
    8482890 View commit details
    Browse the repository at this point in the history
  4. Integrate "reuse claim memory" with node cache. Return claims to clai…

    …mPool when Node refcnt drops to zero.
    moodyjon committed Jun 6, 2022
    Configuration menu
    Copy the full SHA
    787098e View commit details
    Browse the repository at this point in the history