-
Notifications
You must be signed in to change notification settings - Fork 626
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
Add hashset (new hash table) and use in command lookup #1186
base: unstable
Are you sure you want to change the base?
Commits on Oct 17, 2024
-
Hashset implementation (squashed)
Signed-off-by: Viktor Söderqvist <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 02221d1 - Browse repository at this point
Copy the full SHA 02221d1View commit details
Commits on Oct 18, 2024
-
Replace dict with hashset in command tables (#1065)
This changes the type of command tables from dict to hashset. Command table lookup takes ~3% of overall CPU time in benchmarks, so it is a good candidate for optimization. My initial SET benchmark comparison suggests that hashset is about 4.5 times faster than dict and this replacement reduced overall CPU time by 2.79% 🥳 --------- Signed-off-by: Rain Valentine <[email protected]> Signed-off-by: Rain Valentine <[email protected]> Co-authored-by: Rain Valentine <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3038293 - Browse repository at this point
Copy the full SHA 3038293View commit details -
Iterator bugfixes: handle empty hashset and change iteration order so…
… rehashed buckets can be skipped (#1147) Fixes 2 bugs in hashsetNext(): - null dereference when iterating over new unused hashset - change order of iteration so skipping past already-rehashed buckets works correctly and won't miss elements Minor optimization in hashsetScan and some renamed variables. Signed-off-by: Rain Valentine <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bfbf5b0 - Browse repository at this point
Copy the full SHA bfbf5b0View commit details -
Apply suggestions from code review
Co-authored-by: Madelyn Olson <[email protected]> Signed-off-by: Viktor Söderqvist <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a7f34b8 - Browse repository at this point
Copy the full SHA a7f34b8View commit details -
Use variable name `s` for hashset instead of `t`. Use variable name `element` instead of `elem`. Remove the hashsetType.userdata field. Some more fixes. Signed-off-by: Viktor Söderqvist <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 69ec76a - Browse repository at this point
Copy the full SHA 69ec76aView commit details -
Fix comment and delete unused code
Signed-off-by: Viktor Söderqvist <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bd1ecfb - Browse repository at this point
Copy the full SHA bd1ecfbView commit details -
Mistake in previous incomplete variable renaming
Signed-off-by: Viktor Söderqvist <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 10d3abf - Browse repository at this point
Copy the full SHA 10d3abfView commit details -
Fix trailing whitespace in comment
Signed-off-by: Viktor Söderqvist <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2204dd6 - Browse repository at this point
Copy the full SHA 2204dd6View commit details
Commits on Oct 20, 2024
-
Signed-off-by: Viktor Söderqvist <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5eb3e17 - Browse repository at this point
Copy the full SHA 5eb3e17View commit details -
Use snake_case for struct fields + make stats struct opaque
Signed-off-by: Viktor Söderqvist <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b5f61df - Browse repository at this point
Copy the full SHA b5f61dfView commit details -
Fixup: test case reference to renamed field
Signed-off-by: Viktor Söderqvist <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5129254 - Browse repository at this point
Copy the full SHA 5129254View commit details