I was doing some assembly analysis and saw that the methods on Ipv6Network were not optimizing nearly as well as the equivalent Ipv4Network methods. This PR rewrites the core methods on Ipv6Network to use u128 similarly to how Ipv4Network uses u32.
While preforming this change I addressed some clippy lints and made some more common-sense additions.
I was doing some assembly analysis and saw that the methods on
Ipv6Network
were not optimizing nearly as well as the equivalentIpv4Network
methods. This PR rewrites the core methods onIpv6Network
to useu128
similarly to howIpv4Network
usesu32
.While preforming this change I addressed some clippy lints and made some more common-sense additions.
Results on
.contains()
Before:
After: