Force inlining source and target node id lookup in candidate hops
authorMatt Corallo <git@bluematt.me>
Sat, 9 Dec 2023 21:12:30 +0000 (21:12 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 10 Dec 2023 16:38:35 +0000 (16:38 +0000)
commit2884b00c96087fdf49d309aaee61ee2c8e567ff0
treeb27aafd5ef43ebe12c6c04cd483589c58152a1e5
parent0eb9fca5bbde81abe995e5dae7a4254187e11f6d
Force inlining source and target node id lookup in candidate hops

Because our router is rather large, LLVM doesn't always decide to
inline small functions in it, opting instead for a call. This is
somewhat wasteful when we do repeated `match`es on the same data,
so here we force inlining of the `source` and `target` `NodeId`
lookups.
lightning/src/routing/router.rs