Closed estin closed 3 years ago
Hi! Please check this PR about fixing too slow insert. This solution based on two hashmaps:
Id
id_num
SlotMap or slab may be better to use here, but hashmaps fine too.
Notes:
Eq + Hash
Try it on this example https://github.com/estin/simsearch-parse-cities
$ cargo run --release
LGTM! Thank you.
Hi! Please check this PR about fixing too slow insert. This solution based on two hashmaps:
Id
toid_num
id_num
toId
SlotMap or slab may be better to use here, but hashmaps fine too.
Notes:
Id
now haveEq + Hash
trait bounds nowId
on each insertTry it on this example https://github.com/estin/simsearch-parse-cities