]> git.bitcoin.ninja Git - rust-lightning/commit
Move in-inner-scoring-loop if out to the top level
authorMatt Corallo <git@bluematt.me>
Tue, 12 Dec 2023 16:53:31 +0000 (16:53 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 17 Jul 2024 14:39:29 +0000 (14:39 +0000)
commit24083c10e7fafab279a6a74cc8aee30a695ef623
treeb4bd2861e4d07c4234c590c0f3e9f5b069d72097
parentfe66c1dcff5d37fa030729cbf9eb82636d670db4
Move in-inner-scoring-loop if out to the top level

When scoring channels, walking the historical buckets ends up being
the vast majority of our time. While LLVM is smart enough to pull
some conditionals out of the inner loop, we shouldn't make LLVM do
the work, and avoiding it can let us optimize the algorithm
somewhat in the coming commits.
lightning/src/routing/scoring.rs