rust: storage/seg - implement an iterator for item info
brayniac opened this issue · 2 comments
brayniac commented
In the hashtable module, we are frequently iterating through the hash buckets and info slots to get item info. This is a lot of duplicate code that feels like it can be more concisely expressed at the call sites as an iterator.
hderms commented
@brayniac are you referring to iterations like this repeated chunk:
pelikan/src/rust/storage/seg/src/hashtable/mod.rs
Lines 307 to 318 in 13b1b3a