Avatar for the aio-libs user
aio-libs
async-lru
BlogDocsChangelog

feat: handle CancelledError - cancel if no other waiters + refactoring

#708Closed
Comparing
BobTheBuidler:refactored
(
33e5dca
) with
master
(
3341173
)
CodSpeed Performance Gauge
×560
Improvement
6
Untouched
33

Benchmarks

39 total
test_internal_task_done_callback_microbenchmark[exception-func-unbounded]
benchmark.py
CodSpeed Performance Gauge
×560
965.4 ms1.7 ms
test_internal_task_done_callback_microbenchmark[exception-func-bounded]
benchmark.py
CodSpeed Performance Gauge
×560
960.4 ms1.7 ms
test_internal_task_done_callback_microbenchmark[cancelled-func-unbounded]
benchmark.py
CodSpeed Performance Gauge
×2.2
3.5 ms1.6 ms
test_internal_task_done_callback_microbenchmark[cancelled-func-bounded]
benchmark.py
CodSpeed Performance Gauge
×2.2
3.5 ms1.6 ms
test_internal_task_done_callback_microbenchmark[finished-func-bounded]
benchmark.py
CodSpeed Performance Gauge
×2.1
3.9 ms1.8 ms
test_internal_task_done_callback_microbenchmark[finished-func-unbounded]
benchmark.py
CodSpeed Performance Gauge
×2.1
3.9 ms1.8 ms
test_cache_fill_eviction_benchmark
benchmark.py
CodSpeed Performance Gauge
+10%
359 ms327.5 ms
test_cache_clear_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
+3%
21.2 µs20.5 µs
test_cache_clear_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
+3%
21.2 µs20.5 µs
test_cache_clear_benchmark[meth-bounded]
benchmark.py
CodSpeed Performance Gauge
+3%
22.2 µs21.6 µs
test_cache_clear_benchmark[meth-unbounded]
benchmark.py
CodSpeed Performance Gauge
+3%
23.9 µs23.3 µs
test_cache_invalidate_benchmark[meth-bounded]
benchmark.py
CodSpeed Performance Gauge
+1%
1.1 ms1.1 ms
test_cache_hit_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
+1%
4.9 ms4.9 ms
test_cache_hit_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
+1%
4.9 ms4.9 ms
test_cache_hit_benchmark[meth-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
10 ms9.9 ms
test_cache_invalidate_benchmark[meth-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
test_cache_hit_benchmark[meth-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
9.9 ms9.9 ms
test_internal_cache_hit_microbenchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
152.6 µs152.5 µs
test_internal_cache_miss_microbenchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
108.2 µs108.1 µs
test_internal_cache_miss_microbenchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
108.9 µs108.8 µs
test_cache_info_benchmark[meth-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
2.3 ms2.3 ms
test_cache_info_benchmark[meth-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
2.3 ms2.3 ms
test_cache_info_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
2 ms2 ms
test_concurrent_cache_hit_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
2.7 ms2.7 ms
test_cache_invalidate_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
382.1 µs382.2 µs

Commits

Click on a commit to change the comparison range
Base
master
3341173
×560
Update benchmark.py
157c7d5
5 months ago
by BobTheBuidler
0%
Update test_internals.py
23daa05
5 months ago
by BobTheBuidler
0%
Update test_basic.py
3972c0f
5 months ago
by BobTheBuidler
0%
Update test_internals.py
4878867
5 months ago
by BobTheBuidler
+33.66%
Update __init__.py
3943555
5 months ago
by BobTheBuidler
×2.9
Update __init__.py
d76b537
5 months ago
by BobTheBuidler
+1.35%
Update __init__.py
9ed3a42
5 months ago
by BobTheBuidler
0%
Update test_internals.py
4675c7a
5 months ago
by BobTheBuidler
0%
Update test_internals.py
33e5dca
5 months ago
by BobTheBuidler
© 2026 CodSpeed Technology
Home Terms Privacy Docs