Force inlining source and target node id lookup in candidate hops 2023-12-layout-graph-mem
authorMatt Corallo <git@bluematt.me>
Sat, 9 Dec 2023 21:12:30 +0000 (21:12 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 21 Dec 2023 16:36:04 +0000 (16:36 +0000)
commit15dc0dbcfe8b7cadb76818dc75fdf404d016703c
treea4d14cf344ef527159bbbff64978eeb254995be8
parent694e70f5b57ba6cb8392e3de98a301bd0de23b87
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