]> git.bitcoin.ninja Git - rust-lightning/commit
Pre-allocate send buffer when forwarding gossip
authorMatt Corallo <git@bluematt.me>
Sat, 4 Nov 2023 16:20:51 +0000 (16:20 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 4 Nov 2023 16:20:51 +0000 (16:20 +0000)
commit14554521770f857899ab512b0de107fc714ae490
tree9e25563e495b633bd0876567f7764b43418d77fc
parentabee51b10c3aac329ede97efb510572f3026d7da
Pre-allocate send buffer when forwarding gossip

When forwarding gossip, rather than relying on Vec doubling,
pre-allocate the message encoding buffer.
lightning/src/ln/peer_channel_encryptor.rs
lightning/src/ln/peer_handler.rs