Revert schema object reuse#3469
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (4)
💤 Files with no reviewable changes (3)
📝 WalkthroughWalkthrough
ChangesRemove $ref schema object cache
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
📚 Docs Preview: https://pr-3469.datamodel-code-generator.pages.dev |
Merging this PR will degrade performance by 12.76%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ❌ | WallTime | test_perf_deep_nested |
4.3 s | 5.1 s | -14.32% |
| ❌ | WallTime | test_perf_duplicate_names |
892.8 ms | 1,037.8 ms | -13.98% |
| ❌ | WallTime | test_perf_kubernetes_style_pydantic_v2 |
2.2 s | 2.5 s | -13.6% |
| ❌ | WallTime | test_perf_all_options_enabled |
4.5 s | 5.3 s | -13.59% |
| ❌ | WallTime | test_perf_multiple_files_input |
3 s | 3.5 s | -13.57% |
| ❌ | WallTime | test_perf_stripe_style_pydantic_v2 |
1.7 s | 1.9 s | -12.99% |
| ❌ | WallTime | test_perf_large_models_pydantic_v2 |
3.1 s | 3.5 s | -12.8% |
| ❌ | WallTime | test_perf_complex_refs |
1.7 s | 1.9 s | -11.78% |
| ❌ | WallTime | test_perf_graphql_style_pydantic_v2 |
686 ms | 775.7 ms | -11.57% |
| ❌ | WallTime | test_perf_aws_style_openapi_pydantic_v2 |
1.6 s | 1.8 s | -11.32% |
| ❌ | WallTime | test_perf_openapi_large |
2.5 s | 2.8 s | -10.76% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing revert-schema-cache (75d305f) with main (d71d633)
Footnotes
-
98 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3469 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 149 149
Lines 32276 32207 -69
Branches 3772 3769 -3
=========================================
- Hits 32276 32207 -69
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Breaking Change AnalysisResult: No breaking changes detected Reasoning: PR #3469 reverts an internal schema-object reuse/caching optimization in the JSON Schema parser. All affected symbols are private implementation details: the This analysis was performed by Claude Code Action |
|
🎉 Released in 0.65.0 This PR is now available in the latest release. See the release notes for details. |
Summary by CodeRabbit