]> git.bitcoin.ninja Git - rust-lightning/commit
Consolidate `candidate` access in `add_entry` during routing
authorMatt Corallo <git@bluematt.me>
Fri, 8 Dec 2023 19:43:17 +0000 (19:43 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 10 Jul 2024 19:38:02 +0000 (19:38 +0000)
commitbed1fb073be98b8a0f68bfb12701506d3b4973ae
tree9294ab31ec97fa9a9d54b61c69b65e299a176ec1
parent9566c272c8f2109aeee6628d74dc5b3eecb427e1
Consolidate `candidate` access in `add_entry` during routing

Because fetching fields from the `$candidate` often implies an
indirect read, grouping them together may result in one or two
fewer memory loads, so we do so here.
lightning/src/routing/router.rs