]> git.bitcoin.ninja Git - rust-lightning/commit
Use `VecDeque`, rather than `LinkedList` in peer message buffering
authorMatt Corallo <git@bluematt.me>
Sat, 4 Nov 2023 20:20:12 +0000 (20:20 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 7 Nov 2023 18:13:23 +0000 (18:13 +0000)
commit0503df88c75936f7e64a8aafbf80e28389e7dcde
tree616e3376b086cefcfb3ff7ced871682758502db2
parent48edd01d02a68258c046bff0e2bd05d25efd28ce
Use `VecDeque`, rather than `LinkedList` in peer message buffering

When buffering outbound messages for peers, `LinkedList` adds
rather substantial allocation overhead, which we avoid here by
swapping for a `VecDeque`.
lightning/src/ln/peer_handler.rs