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 allocations for ID type #185

Merged
merged 2 commits into from
Mar 19, 2022

Commits on Mar 17, 2022

  1. Reduce allocations for ID type

    Going from ID to string causes an allocation. This change avoids this
    allocation by holding onto the original string and instead tracking
    where the path begins inside of that string. Note that this does not
    increase memory usage since the backing array of the original string was
    already being held by the existing code. This change also reduces the
    struct size of the ID type.
    
    Signed-off-by: Andrew Harding <aharding@vmware.com>
    azdagron committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    32fbdcd View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2022

  1. add a small comment explaining pathidx

    Signed-off-by: Andrew Harding <aharding@vmware.com>
    azdagron committed Mar 18, 2022
    Configuration menu
    Copy the full SHA
    d61b3ee View commit details
    Browse the repository at this point in the history