Avatar for the koxudaxi user
koxudaxi
datamodel-code-generator
BlogDocsChangelog

Fix indefinite hang on OpenAPI schemas with cyclic model dependencies

#3078
Comparing
kevin-paulson-mindbridge-ai:slow_schema_generation_fix
(
9eaaaf9
) with
main
(
92bdc27
)
CodSpeed Performance Gauge
-13%
Regression
8
Untouched
3
Skipped
98

Benchmarks

109 total
test_perf_large_models_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
-13%
3.3 s3.8 s
test_perf_aws_style_openapi_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
-12%
1.7 s1.9 s
test_perf_openapi_large
tests/main/test_performance.py
CodSpeed Performance Gauge
-12%
2.6 s3 s
test_perf_kubernetes_style_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
-11%
2.4 s2.7 s
test_perf_graphql_style_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
-11%
751.9 ms842.8 ms
test_perf_multiple_files_input
tests/main/test_performance.py
CodSpeed Performance Gauge
-11%
3.4 s3.8 s
test_perf_stripe_style_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
-11%
1.8 s2 s
test_perf_complex_refs
tests/main/test_performance.py
CodSpeed Performance Gauge
-10%
2 s2.2 s
test_perf_deep_nested
tests/main/test_performance.py
CodSpeed Performance Gauge
-9%
5.6 s6.2 s
test_perf_all_options_enabled
tests/main/test_performance.py
CodSpeed Performance Gauge
-9%
6 s6.6 s
test_perf_duplicate_names
tests/main/test_performance.py
CodSpeed Performance Gauge
-10%
964.4 ms1,071.3 ms
test_main_nested_directory
tests/main/jsonschema/test_main_jsonschema.py
Skipped
247.9 ms*
test_main_strict_types_all_with_field_constraints
tests/main/jsonschema/test_main_jsonschema.py
Skipped
81 ms*
test_main_jsonschema_complex_any_of
tests/main/jsonschema/test_main_jsonschema.py
Skipped
68 ms*
test_main_allof_root_model_constraints
tests/main/jsonschema/test_main_jsonschema.py
Skipped
287.1 ms*
test_main_use_frozen_field_dataclass
tests/main/jsonschema/test_main_jsonschema.py
Skipped
35.8 ms*
test_main_use_frozen_field_pydantic_v1
tests/main/jsonschema/test_main_jsonschema.py
Skipped
48.5 ms*
test_main_use_frozen_field_pydantic_v2
tests/main/jsonschema/test_main_jsonschema.py
Skipped
54 ms*
test_main_jsonschema_reserved_field_name_typed_dict
tests/main/jsonschema/test_main_jsonschema.py
Skipped
29 ms*
test_main_jsonschema_reserved_field_name_dataclass
tests/main/jsonschema/test_main_jsonschema.py
Skipped
29.8 ms*
test_main_jsonschema_reserved_field_name_pydantic
tests/main/jsonschema/test_main_jsonschema.py
Skipped
45.6 ms*
test_main_all_of_ref
tests/main/jsonschema/test_main_jsonschema.py
Skipped
39.3 ms*
test_main_allof_root_model_constraints_merge
tests/main/jsonschema/test_main_jsonschema.py
Skipped
262.9 ms*
test_main_lookaround_union_types_pydantic_v2
tests/main/jsonschema/test_main_jsonschema.py
Skipped
58.4 ms*
test_main_use_default_factory_for_optional_nested_models_with_dict[pydantic_v2.BaseModel-default_factory_nested_model_with_dict_pydantic_v2.py]
tests/main/jsonschema/test_main_jsonschema.py
Skipped
68.4 ms*

Commits

Click on a commit to change the comparison range
Base
main
92bdc27
+1.35%
Add one more noqa
b4e675c
21 days ago
by kevin-paulson-mindbridge-ai
+13.56%
Add assertions to test
7eaf6ab
21 days ago
by kevin-paulson-mindbridge-ai
-15.13%
add some generation test for schemas with cyclic references in order to track the generated output
7786cf9
20 days ago
by kevin-paulson-mindbridge-ai
+20.35%
Add missing expected_file
8d3ee39
20 days ago
by kevin-paulson-mindbridge-ai
-20.07%
Update the `test_main_cyclic_` tests so that before the change they actually reproduce the issue (don't complete in a reasonable time)
bb037b0
18 days ago
by kevin-paulson-mindbridge-ai
-2.01%
No disable timestamp like the other tests
d10ed4a
14 days ago
by kevin-paulson-mindbridge-ai
-10.01%
Revert "Add graphql test"
c9a99b6
4 days ago
by kevin-paulson-mindbridge-ai
-0.93%
Update test docstrings
9eaaaf9
4 days ago
by kevin-paulson-mindbridge-ai
© 2026 CodSpeed Technology
Home Terms Privacy Docs