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>
Sun, 10 Dec 2023 03:56:58 +0000 (03:56 +0000)
commit7dddb39fbd1c28c0992b2c83255039df90419fd1
tree164dce8df3b67864045cf4d81d3e683f2ce6eed6
parent0b7d73117c173429d04000e5799bf577062c70fd
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