This repository has been archived by the owner on May 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reimplement IPSet.Ranges with a (somewhat) easier to follow algorithm.
The main goal was to fix #125 by providing a less tricky implementation of Ranges as a comparison baseline... But this implementation turns out to also be a bit faster and more memory efficient. Fixes #125. name old time/op new time/op delta IPSetFuzz-8 16.3µs ± 3% 14.1µs ± 1% -12.99% (p=0.008 n=5+5) name old alloc/op new alloc/op delta IPSetFuzz-8 2.60kB ± 0% 1.95kB ± 0% -25.24% (p=0.008 n=5+5) name old allocs/op new allocs/op delta IPSetFuzz-8 33.0 ± 0% 30.0 ± 0% -9.09% (p=0.008 n=5+5) Signed-off-by: David Anderson <[email protected]>
- Loading branch information
Showing
3 changed files
with
172 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.