mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-30 06:24:21 +01:00
Improve allocation usage from ImmutableRecords by reusing them. ImmutableRecord is basically a contigous piece of memory that holds the current record. If we move to some other record we usually deallocate the previous one and allocate a new one -- obviously this is wasteful. With this commit we will reuse the ImmutableRecord to allow payload to be extended if needed or reused if we can, making it faster to iterate records basically.