Skip to content

[C++] Delimit JSON documents without parsing them #51470

Closed

Description

@taepper

Describe the enhancement requested

simdjson has a multi-stage parser that first finds structural elements in the entire buffer (including document boundaries). Only the second stage, which is lazy, actually need to parse the documents.

Similarily parse_many already computes all document boundaries and we can iterate its output to consume the documents without parsing any documents:
https://github.com/simdjson/simdjson/blob/6913ee1a17a57d23a2e9f458d8e04e96cd43ecab/doc/parse_many.md?plain=1#L85-L88

Component(s)

C++

Activity

  1. taepper commented on Sep 23, 2026

    @taepper
    ContributorAuthor

    take

  2. added this to the 26.0.0 milestone on Sep 28, 2026
  3. pitrou commented on Sep 28, 2026

    @pitrou
    Member

    Issue resolved by pull request 51472
    #51472

  4. added a commit that references this issue on Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions