Skip to content

Encode maps directly without an intermediate EJSON proplist#302

Merged
nickva merged 1 commit into
masterfrom
enc-map-direct
Jun 16, 2026
Merged

Encode maps directly without an intermediate EJSON proplist#302
nickva merged 1 commit into
masterfrom
enc-map-direct

Conversation

@nickva

@nickva nickva commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Encode a map from a flat [k1, v1, ...] list built from a map itertor instead {k,v} tuples. To drive yielding properly a new $map_ref$ stack marker but otherwise it's a regular old list.

Saw a 5% median speedup on tests with lots of json objects like gsoc and neutral on others.

Encode a map from a flat `[k1, v1, ...]` list built from a map itertor instead
`{k,v}` tuples. To drive yielding properly a new `$map_ref$` stack marker but
otherwise it's a regular old list.

Saw a 5% median speedup on tests with lots of json objects like `gsoc` and
neutral on others.

@davisp davisp left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 Nice work!

@nickva nickva merged commit c26d934 into master Jun 16, 2026
24 checks passed
@nickva nickva deleted the enc-map-direct branch June 16, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants