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

feat: handle CancelledError - cancel if no other waiters

#697Merged
Comparing
BobTheBuidler:patch-3
(
928531f
) with
master
(
0654124
)
CodSpeed Performance Gauge
×560
Improvement
6
Untouched
57
Skipped
4

Benchmarks

67 total
test_internal_task_done_callback_microbenchmark[exception-func-unbounded]
benchmark.py
CodSpeed Performance Gauge
×560
963.7 ms1.7 ms
test_internal_task_done_callback_microbenchmark[exception-func-bounded]
benchmark.py
CodSpeed Performance Gauge
×560
961.5 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-unbounded]
benchmark.py
CodSpeed Performance Gauge
×2.1
3.9 ms1.8 ms
test_internal_task_done_callback_microbenchmark[finished-func-bounded]
benchmark.py
CodSpeed Performance Gauge
×2.1
3.9 ms1.8 ms
test_cache_fill_eviction_benchmark
benchmark.py
CodSpeed Performance Gauge
+7%
358.8 ms336.3 ms
test_cache_hit_benchmark[func-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
+6%
85.5 ms81 ms
test_cache_hit_benchmark[func-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
+5%
85.4 ms81 ms
test_cache_hit_benchmark[meth-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
+5%
91.3 ms86.8 ms
test_cache_hit_benchmark[meth-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
+5%
91.3 ms86.8 ms
test_cache_miss_benchmark[meth-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
+5%
11.9 ms11.4 ms
test_cache_miss_benchmark[func-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
+5%
11.5 ms11 ms
test_cache_miss_benchmark[meth-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
+5%
12 ms11.4 ms
test_cache_miss_benchmark[func-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
+5%
11.6 ms11.1 ms
test_cache_clear_benchmark[meth-unbounded]
benchmark.py
CodSpeed Performance Gauge
+4%
22.3 µs21.6 µs
test_cache_clear_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
+3%
22.7 µs22 µs
test_cache_clear_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
+3%
21.1 µs20.5 µs
test_cache_clear_benchmark[meth-bounded]
benchmark.py
CodSpeed Performance Gauge
+3%
22.2 µs21.5 µs
test_cache_clear_benchmark[meth-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
+3%
22.4 µs21.8 µs
test_cache_clear_benchmark[func-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
+3%
21.2 µs20.6 µs
test_cache_clear_benchmark[func-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
+3%
21.1 µs20.5 µs
test_cache_clear_benchmark[meth-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
+2%
22.2 µs21.6 µs
test_cache_hit_benchmark[meth-bounded]
benchmark.py
CodSpeed Performance Gauge
+2%
10.2 ms10 ms
test_cache_hit_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
+1%
4.9 ms4.9 ms

Commits

Click on a commit to change the comparison range
Base
master
0654124
+0.09%
finish up impl
e85e099
5 months ago
by BobTheBuidler
0%
Update test_cancel.py
2c4d654
5 months ago
by BobTheBuidler
+0.12%
lint
f9cfbf9
5 months ago
by BobTheBuidler
0%
Update __init__.py
6441a1d
5 months ago
by BobTheBuidler
-0.04%
Update __init__.py
94c303b
5 months ago
by BobTheBuidler
-0.32%
Merge branch 'master' into patch-3
4495e48
4 months ago
by BobTheBuidler
+0.09%
Update test_cancel.py
ca5a166
4 months ago
by BobTheBuidler
-0.04%
lint
829a077
4 months ago
by BobTheBuidler
+0.05%
lint
4d239ef
4 months ago
by BobTheBuidler
-0.05%
Update __init__.py
83a6b53
4 months ago
by BobTheBuidler
×560
Merge branch 'refactored' into patch-3
9d1f4f8
4 months ago
by BobTheBuidler
-94.5%
reduce sleep time
b131609
4 months ago
by BobTheBuidler
+95.4%
Update test_cancel.py
b42e31d
4 months ago
by BobTheBuidler
-0.94%
Merge branch 'master' into patch-3
be24f51
4 months ago
by BobTheBuidler
-2.64%
remove unnecessary check
28a108a
4 months ago
by BobTheBuidler
+5.55%
Update __init__.py
b0e7572
4 months ago
by BobTheBuidler
-1.66%
Tweak coverage
928531f
4 months ago
by Dreamsorcerer
© 2026 CodSpeed Technology
Home Terms Privacy Docs