mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 08:41:34 +11:00
Seems range inclusive doesn't optimise very well...
This commit is contained in:
parent
451868723f
commit
1c33c8544e
|
@ -657,7 +657,7 @@ impl<K, V> NodeStorage<K, V> {
|
||||||
where
|
where
|
||||||
K: Eq,
|
K: Eq,
|
||||||
{
|
{
|
||||||
for distance_to_initial_bucket in 0..=self.max_distance_to_initial_bucket {
|
for distance_to_initial_bucket in 0..(self.max_distance_to_initial_bucket + 1) {
|
||||||
let location = fast_mod(
|
let location = fast_mod(
|
||||||
self.nodes.len(),
|
self.nodes.len(),
|
||||||
hash + distance_to_initial_bucket as HashType,
|
hash + distance_to_initial_bucket as HashType,
|
||||||
|
|
Loading…
Reference in a new issue