]> git.bitcoin.ninja Git - rust-lightning/commit
Replace `BTreeSet` in `IndexedMap` with sorted `Vec`
authorAlec Chen <alecchendev@gmail.com>
Thu, 16 Feb 2023 22:34:06 +0000 (16:34 -0600)
committerAlec Chen <alecchendev@gmail.com>
Mon, 20 Feb 2023 04:22:11 +0000 (22:22 -0600)
commit62a88f97de725c366665a34c8183747024970fa6
tree3854fe3dc3bf344a82242e0b3fe2d69d927062fd
parentd0b8f455fe86d3e55231d35d35dd96693abe2049
Replace `BTreeSet` in `IndexedMap` with sorted `Vec`

The `Vec` is sorted not on `IndexedMap::insert`, but on
`IndexedMap::range` to avoid unnecessary work while reading a network
graph.
fuzz/src/indexedmap.rs
lightning/src/routing/gossip.rs
lightning/src/util/indexed_map.rs