Skip to content

[pull] master from ruby:master#1079

Merged
pull[bot] merged 1 commit into
turkdevops:masterfrom
ruby:master
Jun 4, 2026
Merged

[pull] master from ruby:master#1079
pull[bot] merged 1 commit into
turkdevops:masterfrom
ruby:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Jun 4, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

As opposed to a recursive loop. We do this by keeping a stack of
frames (very similar to how the stack of values was already
stored). Each frame represents the state of a container. Since
there are only 2 in JSON, it doesn't have to get too complex.

Each frame in the iterative parser now holds an enum describing
its "phase", in order to support suspending parsing.

For performance to be on par with the previous implementation,
we directly jump to the proper handler in most cases.

`JSON_ParserState.stack` was renamed into `.value_stack`,
as with the introduction of the frames stack, the naming became
confusing.

ruby/json@a760d9ae9b

Co-Authored-By: Jean Boussier <jean.boussier@gmail.com>
@pull pull Bot locked and limited conversation to collaborators Jun 4, 2026
@pull pull Bot added the ⤵️ pull label Jun 4, 2026
@pull pull Bot merged commit ab2bc7e into turkdevops:master Jun 4, 2026
0 of 2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant