Skip to content

Version 1.1.25#1577

Merged
sinclairzx81 merged 3 commits into
mainfrom
static
Apr 16, 2026
Merged

Version 1.1.25#1577
sinclairzx81 merged 3 commits into
mainfrom
static

Conversation

@sinclairzx81
Copy link
Copy Markdown
Owner

@sinclairzx81 sinclairzx81 commented Apr 16, 2026

This PR implements an inference optimization for typebox/schema by re-routing XStatic to Type Static for Check, Parse and Compile. It has been observed that large property sets will cause the native JSON Schema inference to break with deeply nested property sets, which is a scalability issue.

The scaling issue was related to TRequired traversal, so will need to investigate a more optimal Native inference strategy before swapping back to XStatic

We can side step this by directing inference back to Type.* which implements optimized inference via Static. This is a cross cutting concern, but worth it to allow Type to be compiled without instantiation issues on the Schema compiler.

@sinclairzx81 sinclairzx81 merged commit 22b3aa7 into main Apr 16, 2026
6 checks passed
@sinclairzx81 sinclairzx81 deleted the static branch April 16, 2026 16:36
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.

1 participant