Skip to content

Use writeStartObject(Object forValue, int size) for ObjectNode serialization #5103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cowtowncoder opened this issue Apr 24, 2025 · 0 comments
Labels
2.20 Issues planned at 2.20 or later

Comments

@cowtowncoder
Copy link
Member

(note: part of #3679)

Currently ObjectNode serialization uses "simple" writeStartObject(Object forValue).
It would be more efficient for some backends to use variant that takes number of elements to write as argument (f.ex CBOR has length-prefixed variant that may be more efficient to decode).

Although not all cases can use this variant (if filtering, f.ex), but some can: let's use it where we can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.20 Issues planned at 2.20 or later
Projects
None yet
Development

No branches or pull requests

1 participant