Skip to content

A speed tune#295

Merged
daveshanley merged 4 commits into
mainfrom
speed-tune
Jun 24, 2026
Merged

A speed tune#295
daveshanley merged 4 commits into
mainfrom
speed-tune

Conversation

@daveshanley

Copy link
Copy Markdown
Member

after adding $def / circular ref handling, things sloooooooooow down at scale, and I can't have that, so here is a balanced view with a proper schema resource cache

Introduce `SchemaResourceCache` to reuse rendered document-level JSON Schema resources across compiled schema entry points, keyed by parsed-document identity and validation purpose. Enabled by default via `NewDefaultSchemaResourceCache`, configurable through `WithSchemaResourceCache` and propagated by `WithExistingOpts`.
@codecov

codecov Bot commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.98%. Comparing base (6882d41) to head (7bfeff4).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #295      +/-   ##
==========================================
+ Coverage   97.97%   97.98%   +0.01%     
==========================================
  Files          67       67              
  Lines        7445     7694     +249     
==========================================
+ Hits         7294     7539     +245     
- Misses        125      127       +2     
- Partials       26       28       +2     
Flag Coverage Δ
unittests 97.98% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

long running processes need clean memory, caches will grow and grow over time unless you clean them, so now we can!
@daveshanley daveshanley merged commit d6c4a7f into main Jun 24, 2026
4 checks passed
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