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

Optimize performance for large schema processing

#2774Merged
Comparing
perf/optimize-large-schema-processing
(
a688ee9
) with
main
(
1966581
)
CodSpeed Performance Gauge
0%
Untouched
73
Skipped
10

Benchmarks

83 total
test_main_openapi_all_of_required
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
+1%
40.7 ms40.4 ms
test_main_yaml
tests/main/test_main_yaml.py
CodSpeed Performance Gauge
+1%
34.5 ms34.3 ms
test_main_lookaround_dict_standard_collections
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
+1%
53.1 ms52.8 ms
test_main_nested_lookaround_array_pydantic_v2
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
57.4 ms57.2 ms
test_main_use_frozen_field[pydantic_v2.BaseModel-use_frozen_field_v2.py]
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
52.3 ms52.1 ms
test_main_external_definitions
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
38.6 ms38.5 ms
test_main_jsonschema_id
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
41.6 ms41.6 ms
test_main_pydantic_v2_model_rebuild_inheritance
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
55.5 ms55.4 ms
test_main_openapi_nullable_31
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
44.3 ms44.3 ms
test_main_lookaround_union_types_pydantic_v2
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
56.1 ms56.1 ms
test_main_nullable_array_items_strict_nullable
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
53.8 ms53.7 ms
test_main_jsonschema_reserved_field_name[dataclasses.dataclass-reserved_field_name_schema_dataclass.py]
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
29.3 ms29.3 ms
test_main_jsonschema_reserved_field_name[typing.TypedDict-reserved_field_name_schema_typed_dict.py]
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
28.6 ms28.6 ms
test_main_field_name_shadows_class_name
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
48.4 ms48.4 ms
test_main_collapse_root_models
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
71.1 ms71 ms
test_main_root_model_config_frozen
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
67.9 ms67.9 ms
test_main_lookaround_dict_pydantic_v2
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
52.8 ms52.7 ms
test_main_lookaround_mixed_constraints_pydantic_v2
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
57.5 ms57.4 ms
test_main_jsonschema_root_model_default_value_branches
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
70.7 ms70.6 ms
test_main_keep_model_order_field_references
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
36.9 ms36.8 ms
test_main_with_strip_default_none
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
114.6 ms114.5 ms
test_main_jsonschema_extras_in_oneof
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
98.9 ms98.8 ms
test_force_optional
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
128.1 ms128 ms
test_main_jsonschema_root_model_default_value_non_root
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
72.7 ms72.7 ms
test_main_root_model_config_populate_by_name
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
61.7 ms61.7 ms

Commits

Click on a commit to change the comparison range
Base
main
1966581
-1.08%
Optimize performance for large schema processing
3fbeaf9
4 months ago
by koxudaxi
+1.04%
Remove unresolved_types cache for Pydantic v1 compatibility
b4fa082
4 months ago
by koxudaxi
0%
Add pragma: no cover for rare edge case optimization in DataType
fd3d93e
4 months ago
by koxudaxi
+0.08%
Add pragma: no cover for cache hit path in reference
a688ee9
4 months ago
by koxudaxi
© 2026 CodSpeed Technology
Home Terms Privacy Docs