Skip to content

JSON parser copies entire JSON document to memory when parsing from stream. #3309

@obiltschnig

Description

@obiltschnig

When parsing from a stream, the entire contents are copied to a std::ostringstream and the resulting string is then passed to the parser, which is highly inefficient.

Only copy to memory if need to remove comments or check for null bytes.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions