Avatar for the byteoak user
byteoak
py4j
BlogDocsChangelog

perf: decode_bytearray (closes #570) + hot-path smart_decode shortcuts (credit @markjm #575)

#5Merged
Comparing
perf-quick-wins
(
e7b1485
) with
master
(
3c2f164
)
CodSpeed Performance Gauge
+91%
Improvement
2
Untouched
16
Skipped
7

Benchmarks

7 total
test_m5b_encode_string
py4j-python/src/py4j/tests/perf/scenarios/micro.py
Skipped
28.2 µs*
test_m5c_encode_float
py4j-python/src/py4j/tests/perf/scenarios/micro.py
Skipped
27.8 µs*
test_m7a_escape
py4j-python/src/py4j/tests/perf/scenarios/micro.py
Skipped
22.2 µs*
test_m6a_decode_int
py4j-python/src/py4j/tests/perf/scenarios/micro.py
Skipped
22.9 µs*
test_m7b_unescape
py4j-python/src/py4j/tests/perf/scenarios/micro.py
Skipped
62.4 µs*
test_m6b_decode_string
py4j-python/src/py4j/tests/perf/scenarios/micro.py
Skipped
37.8 µs*
test_m5a_encode_int
py4j-python/src/py4j/tests/perf/scenarios/micro.py
Skipped
25.7 µs*

Commits

Click on a commit to change the comparison range
Base
master
3c2f164
+91.12%
perf: drop smart_decode dispatch on hot recv + minor protocol cleanups
e7b1485
4 months ago
by Tagar
© 2026 CodSpeed Technology
Home Terms Privacy Docs