Skip to content

Conversation

@JKamsker
Copy link
Collaborator

@JKamsker JKamsker commented Oct 1, 2025

Summary

  • switch numeric deserialization in BufferReader to use stack-allocated spans with BinaryPrimitives and keep pooled buffers only for large reads
  • mirror the stack span write path in BufferWriter so small numeric writes avoid the array pool while still handling multi-segment copies
  • add a regression test that writes and reads numbers across multiple slices to exercise the new stack paths

Testing

  • dotnet test LiteDB.Tests -f net8.0

https://chatgpt.com/codex/tasks/task_e_68cfd6f1ea80832a91c26680b1edb837

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants