Avatar for the aio-libs user
aio-libs
aiohttp
BlogDocsChangelog

Avoid multiple slice calls in the WebSocket reader

#9636Merged
Comparing
avoid_slice_empty_tail
(
c828cca
) with
master
(
c95c025
)
CodSpeed Performance Gauge
+16%
Improvement
1
Untouched
7

Benchmarks

8 total
test_read_one_hundred_websocket_text_messages[pyloop]
tests/test_benchmarks_http_websocket.py
CodSpeed Performance Gauge
+16%
544.5 µs470.6 µs
test_send_one_hundred_websocket_text_messages[pyloop]
tests/test_benchmarks_http_websocket.py
CodSpeed Performance Gauge
0%
562.7 µs560.6 µs
test_serialize_headers
tests/test_benchmarks_http_writer.py
CodSpeed Performance Gauge
0%
1.3 ms1.3 ms
test_load_cookies_into_temp_cookiejar
tests/test_benchmarks_cookiejar.py
CodSpeed Performance Gauge
0%
209.7 µs209.9 µs
test_client_request_update_cookies[pyloop]
tests/test_benchmarks_client_request.py
CodSpeed Performance Gauge
0%
178.3 µs178.5 µs
test_create_client_request_with_headers[pyloop]
tests/test_benchmarks_client_request.py
CodSpeed Performance Gauge
0%
76.1 µs76.2 µs
test_send_one_hundred_websocket_text_messages_with_mask[pyloop]
tests/test_benchmarks_http_websocket.py
CodSpeed Performance Gauge
0%
804.3 µs807.7 µs
test_create_client_request_with_cookies[pyloop]
tests/test_benchmarks_client_request.py
CodSpeed Performance Gauge
-1%
134.4 µs135.7 µs

Commits

Click on a commit to change the comparison range
Base
master
c95c025
+1.66%
Avoid slice in the WebSocket reader when the tail is empty
77e1657
1 year ago
by bdraco
+14.25%
avoid another slice
825f2be
1 year ago
by bdraco
-0.2%
changelog
c828cca
1 year ago
by bdraco
© 2026 CodSpeed Technology
Home Terms Privacy Docs