]> git.bitcoin.ninja Git - rust-lightning/commit
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>
Wed, 17 Jul 2024 14:36:57 +0000 (14:36 +0000)
commitfe66c1dcff5d37fa030729cbf9eb82636d670db4
treef63d3465fbc986be9bd75d5b59da9f0445a434c4
parent1a1d528b88cc1d4f6d23e7a34a3f96a43310e165
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