Avatar for the fastapi user
fastapi
fastapi
BlogDocsChangelog

Performance History

Latest Results

⚡ Deduplicate get_flat_dependant calls in OpenAPI schema generation get_openapi_path called get_flat_dependant on the same route 3 times: once directly, once inside _get_openapi_operation_parameters, and once inside get_flat_params. All three computed the identical result. Hoist the computation before the method loop and pass the result to the internal consumers. This eliminates 2 redundant dependency-tree traversals per route during schema generation. Benchmark (10-200 routes, 3 deps each, Python 3.11): | Routes | Speed Δ | RAM Δ | |--------|---------|-------| | 10 | −11 % | ~0 % | | 50 | −6 % | 0 % | | 100 | −7 % | 0 % | | 200 | −10 % | 0 % |
sebastianbreguel:perf/dedup-flat-dependant-in-openapi
1 hour ago
🎨 Auto format
sebastianbreguel:perf/optimize-get-flat-dependant
2 hours ago
fix(sse): preserve empty data lines in SSE formatting
MatiasFormoso:fix-sse-empty-data-lines
4 hours ago
⚡️ Use `TypeAdapter.validate_json` instead of `json.loads`
dolfinus:feature/pydanticv2-validate-json-new
5 hours ago
Trigger CI
fix-typer-removed-isolated_filesystem
5 hours ago
⚡️ Use TypeAdapter.validate_json instead of json.loads
dolfinus:feature/pydanticv2-validate-json
5 hours ago

Latest Branches

CodSpeed Performance Gauge
0%
⚡ Deduplicate get_flat_dependant calls in OpenAPI schema generation#15622
1 hour ago
2c58024
sebastianbreguel:perf/dedup-flat-dependant-in-openapi
CodSpeed Performance Gauge
0%
2 hours ago
255b686
sebastianbreguel:perf/security-scope-dedup-set
CodSpeed Performance Gauge
0%
2 hours ago
1e72c3e
sebastianbreguel:perf/optimize-get-flat-dependant
© 2026 CodSpeed Technology
Home Terms Privacy Docs