supabase / pg_replicate

Build Postgres replication apps in Rust
Apache License 2.0
596 stars 22 forks source link

Use a varint to represent length of an event #16

Open imor opened 6 months ago

imor commented 6 months ago

Currently we use usize to represent the length of an event which is 8 bytes on a 64-bit architecture. This can be replaced by a varint to reduce space used as most events' length will fit in a few bytes.