Skip to content

Conversation

@victorstewart
Copy link
Contributor

@victorstewart victorstewart commented Nov 24, 2025

this PR enables the ability to enable the construction of an offset table during serialization, that enables zero copy reads out of a Bitsery serialized buffer.

several years ago i mentioned wanting this zero copy functionality (similar to Flatbuffers), and i think i finally thought of the perfect way to do it. (and once we get Reflection in C++26, we can drop the FieldRegistry code completely and it can all be automatic). i ran some perf tests and this appears on my side to be zero-cost, as in you don't pay for it at all unless you enable it.

i'm sure you'll have some thoughts, so let's discuss if you want any redesigns.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant