Skip to content

Confirm the in-order JSON field name guess with one masked word compare - #1323

Merged
adwsingh merged 3 commits into
adwsingh/json-string-swar-scanfrom
adwsingh/json-field-name-word-compare
Aug 14, 2026
Merged

Confirm the in-order JSON field name guess with one masked word compare#1323
adwsingh merged 3 commits into
adwsingh/json-string-swar-scanfrom
adwsingh/json-field-name-word-compare

Conversation

@adwsingh

@adwsingh adwsingh commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

What behavior changes?

Short JSON field names in their expected order are now checked with one masked word comparison. Longer or out-of-order names keep the existing lookup path.

Why is this change needed?

Generated payloads usually keep schema order, so the common field lookup can avoid a byte loop and Arrays.equals.

How was this validated?

Added ordered, out-of-order, short-name, and fallback tests plus JsonFieldNameDeserializeBenchmark.

What should reviewers focus on?

The quote-inclusive packed names, length mask, and fallback behavior.

Additional Links

Part of stack #1325.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@adwsingh
adwsingh force-pushed the adwsingh/json-field-name-word-compare branch 2 times, most recently from d23c789 to bef1171 Compare August 14, 2026 11:19
@adwsingh
adwsingh force-pushed the adwsingh/json-field-name-word-compare branch 2 times, most recently from 1c67eaa to cc426ad Compare August 14, 2026 13:04
@adwsingh
adwsingh force-pushed the adwsingh/json-field-name-word-compare branch from cc426ad to 391ed17 Compare August 14, 2026 13:27
@adwsingh
adwsingh force-pushed the adwsingh/json-field-name-word-compare branch from 391ed17 to cc1238a Compare August 14, 2026 13:50
@adwsingh
adwsingh force-pushed the adwsingh/json-field-name-word-compare branch 2 times, most recently from 3944dc9 to a8e49c2 Compare August 14, 2026 15:48
@adwsingh
adwsingh marked this pull request as ready for review August 14, 2026 16:05
@adwsingh
adwsingh requested a review from mtdowling August 14, 2026 16:11
@adwsingh
adwsingh merged commit afb7609 into main Aug 14, 2026
5 checks passed
@adwsingh
adwsingh deleted the adwsingh/json-field-name-word-compare branch August 14, 2026 16:52
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