Skip to content

Optimize client performance hot paths - #7

Merged
terjekv merged 1 commit into
mainfrom
agent/deep-performance-pass
Aug 14, 2026
Merged

terjekv merged 1 commit into
mainfrom
agent/deep-performance-pass

Optimize client performance hot paths

215a68c
Select commit
Loading
Failed to load commit list.
CodSpeed / CodSpeed Performance Analysis succeeded Aug 14, 2026 in 0s

Performance Gate Passed

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 13 improved benchmarks
✅ 16 untouched benchmarks
🆕 2 new benchmarks

Performance Changes

Benchmark BASE HEAD Efficiency
test_authorize_response_aggregates 745.9 µs 290.3 µs ×2.6
test_user_policies_from_api 984.3 µs 709.2 µs +38.78%
test_user_new_many_groups 5.2 ms 4.1 ms +27.21%
test_batch_to_api[100] 18.6 ms 14.7 ms +26.41%
test_request_to_api_with_context 261.6 µs 214.2 µs +22.13%
test_authorize_response_detailed_from_api[50] 5.4 ms 4.5 ms +21.26%
test_serialize_authorization_batch_128 14.3 ms 11.8 ms +20.93%
test_batch_to_api[1] 267.1 µs 228.2 µs +17.05%
test_parse_brief_authorization_response_128 10.4 ms 9.1 ms +14.72%
test_authorize_response_detailed_from_api[1] 212 µs 185 µs +14.6%
test_metadata_from_api 99.9 µs 88.8 µs +12.43%
test_authorize_response_brief_from_api[100] 7.5 ms 6.7 ms +11.97%
test_version_response_from_api 139.3 µs 125.4 µs +11.09%
🆕 test_first_sync_request_lifecycle N/A 156.1 ms N/A
🆕 test_list_policies_many_filters N/A 14.2 ms N/A

Tip

Curious why this is faster? Comment @codspeedbot explain why this is faster on this PR, or directly use the CodSpeed MCP with your agent.


Comparing agent/deep-performance-pass (215a68c) with main (0a425a4)

Open in CodSpeed