Skip to content

Speed up strict payload comparison with paired traversal - #2693

Merged
Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
ywz65:n30-r014
Oct 16, 2026
Merged

Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
ywz65:n30-r014

Conversation

@ywz65

@ywz65 ywz65 commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

PR2040's strict comparator builds two full tagged JSON trees for nonidentical payloads. This opt-in, source-authenticated successor compares positive cases by paired traversal and delegates every negative/invalid case to the unchanged original comparator, preserving complete diagnostics. Duplicate keys, exact numeric types, injective path tags, unknown fields, array order and both original timing paths remain checked.

On the five largest frozen compressed JSON payloads, three alternating-order CPython3.12.14 Windows trials reduced the sum of per-file median full-call times from16.111s to6.584s (2.447x). This includes decompression/parsing, is machine-dependent, and is not a speed threshold. Negative comparisons can be slower; peak memory was not measured.

Validation:1,012 exact full-result differential calls, including the retained105-file/39-adverse audit,625 additional semantic cases and22 large reformats; all15 control groups; registered3.12 replay; optimized3.14 Git-free/read-only export and actual Boolean-receipt rejection; separate code review clear; all25 committed package/input byte streams match tested files. Reproduce with python3 scripts/research_package.py --package research/strict-payload-paired-walk.

Started on current main8513ab11 and checked/fast-forwarded to b5ea56e before submission; guidance and all live inputs unchanged. Originating source pins remain8513. Final overlap covers786 open PRs at17:34UTC and1,239 Discussion records at15:22UTC; Discussion freshness is limited by exhausted GraphQL quota. Claim:#2040 (comment).

Credit:commdata2338 for PR2040, Josie Elliston for the predecessor portability comparator, Rohan Arun and retained supplier authors for the corpus. Prepared by ywz65 with substantial OpenAI Codex assistance. No supplier cold replay, hosted-CI result, selected-frontier change or new kappa is claimed. PR2344 Windows-root adaptation remains separate.

@Mister-Meeseeks
Mister-Meeseeks merged commit 69a54c2 into CrocSwap:main Oct 16, 2026
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