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

Optimize PIDSet performance #839

Merged
merged 1 commit into from
Apr 14, 2023
Merged

Commits on Apr 13, 2023

  1. Optimize PIDSet performance

    * Replace string keys with pidKey struct to save memory
    * Improve indexOf efficiency using the lookup map
    * Refactor Remove to avoid new slice, update lookup map
    * Add Remove method test in pidset_test.go
    * Expand benchmarks in pidset_test.go for varied set sizes
    These changes enhance performance and lower memory usage in PIDSet.
    nbokovoy committed Apr 13, 2023
    Configuration menu
    Copy the full SHA
    4d1d436 View commit details
    Browse the repository at this point in the history