rust-lightning/lightning
Matt Corallo 07b674ecb1 Drop writer size hinting/message vec preallocation
In order to avoid significant malloc traffic, messages previously
explicitly stated their serialized length allowing for Vec
preallocation during the message serialization pipeline. This added
some amount of complexity in the serialization code, but did avoid
some realloc() calls.

Instead, here, we drop all the complexity in favor of a fixed 2KiB
buffer for all message serialization. This should not only be
simpler with a similar reduction in realloc() traffic, but also
may reduce heap fragmentation by allocating identically-sized
buffers more often.
2021-09-18 01:01:41 +00:00
..
src Drop writer size hinting/message vec preallocation 2021-09-18 01:01:41 +00:00
Cargo.toml Update versions to 0.0.100 and lightning-invoice to 0.8 2021-08-17 18:55:07 +00:00