Skip to content

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

Closed
@cowtowncoder

Description

@cowtowncoder

(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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.20Issues planned at 2.20 or later

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions