Avatar for the pydantic user
pydantic
httpx2
BlogDocsChangelog

perf: Rewrite `_assign_requests_to_connections` as a single-pass loop

#974Merged
Comparing
mbeijen:perf/assign-requests-single-pass
(
b813192
) with
main
(
de30f39
)
CodSpeed Performance Gauge
0%
Untouched
15
Skipped
7

Benchmarks

7 total
test_bench_request_multipart
tests/test_benchmark.py
Skipped
15.7 ms*
test_bench_url_join
tests/test_benchmark.py
Skipped
168 ms*
test_bench_client_stream_download
tests/test_benchmark.py
Skipped
28.3 ms*
test_bench_sync_stream_write_large
tests/test_benchmark.py
Skipped
276.6 ms*
test_bench_request_json_post
tests/test_benchmark.py
Skipped
86.9 ms*
test_bench_response_gzip_decode_large
tests/test_benchmark.py
Skipped
35.6 ms*
test_bench_client_post_large_json
tests/test_benchmark.py
Skipped
217.7 ms*

Commits

Click on a commit to change the comparison range
Base
main
de30f39
-0.15%
Rewrite `_assign_requests_to_connections` single-pass
bdd9387
2 months ago
by mbeijen
-0.05%
Remove dead `# log:` placeholder comments
a487586
1 month ago
by Kludex
+0.13%
Merge remote-tracking branch 'origin/main' into pr-974
b813192
1 month ago
by Kludex
© 2026 CodSpeed Technology
Home Terms Privacy Docs