]> git.bitcoin.ninja Git - rust-lightning/commit
Marginally optimize test logging
authorMatt Corallo <git@bluematt.me>
Sat, 2 Dec 2023 19:13:02 +0000 (19:13 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 2 Dec 2023 19:19:07 +0000 (19:19 +0000)
commitdfb02f1878f7f80cd9eab345db5a4589d803fe21
tree03e099b48b109c5e3dba37e52b24c438918f72c3
parent6b43153861c4f8dd1f44da737ad0b06eab8659e7
Marginally optimize test logging

973636bd2ab2ba35fb8b9703f1d5d0e72f069cdc introduced a new `HashMap`
in the `TestLogger` but then did lookups by iterating the entire
map. This fixes that, and also takes this opportunity to stop
allocating new `String`s for the module to store each log entry in
the `TestLogger`
lightning-background-processor/src/lib.rs
lightning/src/ln/functional_tests.rs
lightning/src/util/test_utils.rs