mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-14 17:02:56 +00:00
Instead of building a separate Vec<u8> to hold each message, serialize all the messages to one big Vec<u8>. This eliminates some Vec allocation and memcpy() overhead. The downside is that if there are a lot of records to replay, we have to serialize them all into one big chunk of memory. That shouldn't be a problem in practice. If you need to replay millions of records to reconstruct a page, we should've materialized a new image of that page earlier already.