]> git.bitcoin.ninja Git - rust-lightning/commit
DRY redundant calls to `$candidate.htlc_minimum_msat()` in routing
authorMatt Corallo <git@bluematt.me>
Fri, 8 Dec 2023 01:49:08 +0000 (01:49 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 10 Jul 2024 19:38:02 +0000 (19:38 +0000)
commit3e902401e0f4e56d30c2b537ca53cf9392cea50c
tree9624074700cc58000ca905812b59550fec4d466b
parentdf9c15de75aca8dd6368e4ef8f475237f83ea632
DRY redundant calls to `$candidate.htlc_minimum_msat()` in routing

While LLVM should inline and elide the redundant calls, because the
router is rather large LLVM can decide against inlining in some
cases where it would be an nice win.

Thus, its worth DRY'ing the redundant calls explicitly.
lightning/src/routing/router.rs