NagyZoltanPeter 84a42a3eb4
refactor(consumers): reuse envelope.hash in archive/filter/REST/FFI; share filter buffer
archive.handleMessage and filter.handleMessage gain envelope-native entry points
(reusing the precomputed hash) with thin (topic,msg) compat overloads for tests.
Filter pushToPeer takes a shared `ref seq[byte]` so the encoded buffer is not
deep-copied per subscribed peer. REST messageCacheHandler and the FFI relay
handler adopt the envelope; JsonMessageEvent.new reuses the passed-in hash.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-15 05:44:33 +02:00
..