]> 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:38:03 +0000 (14:38 +0000)
commit06e0c2d2957050d7bfb172c888b3646827541eab
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