stakwork / sphinx-rs

Rust crates for Sphinx Chat
0 stars 0 forks source link

signer: create low memory feature for incoming vls bytes #47

Closed irriden closed 6 months ago

irriden commented 6 months ago

pull vls chunked-filter work, see chunked-buffer, serde_bolt, txoo crates for details.

The tldr is that we now use the chunked_buffer::GenericChunkedBuffer structure, imported here as serde_bolt::NonContiguousOctets for both the MQTT bytes, and the ProofType::Filter structure in txoo.

Key features of NonContiguousBytes:

The use of this structure achieves the following:

total: 91K, max block: 37K
msgs::read
memory allocation of 39235 bytes failed
Evanfeenstra commented 6 months ago

awesome work on this @irriden !