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
Improvements
6
Untouched
57
Skipped
4

Benchmarks

Skipped (4)

test_cache_ttl_expiry_benchmark[meth-unbounded]
benchmark.py
Skipped
144.6 µs*
test_cache_ttl_expiry_benchmark[func-unbounded]
benchmark.py
Skipped
132.6 µs*
test_cache_ttl_expiry_benchmark[func-bounded]
benchmark.py
Skipped
132.5 µs*
test_cache_ttl_expiry_benchmark[meth-bounded]
benchmark.py
Skipped
144.5 µs*

Improved

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

Passed

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
test_internal_cache_hit_microbenchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
153.1 µs152.5 µs
test_concurrent_cache_hit_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
2.7 ms2.7 ms
test_concurrent_cache_hit_benchmark[meth-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
3.2 ms3.2 ms
test_cache_info_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
2 ms2 ms
test_internal_cache_miss_microbenchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
108.9 µs108.7 µs
test_concurrent_cache_hit_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
2.7 ms2.7 ms
test_internal_cache_miss_microbenchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
108.2 µs108.1 µs
test_cache_invalidate_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
383.3 µs383 µs
test_cache_invalidate_benchmark[func-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
382.2 µs381.9 µs
test_cache_info_benchmark[meth-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
2.3 ms2.3 ms
test_cache_info_benchmark[meth-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
2.3 ms2.3 ms
test_cache_invalidate_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
382.3 µs382.1 µs
test_cache_info_benchmark[meth-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
2.3 ms2.3 ms
test_cache_info_benchmark[meth-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
2.3 ms2.3 ms
test_cache_invalidate_benchmark[func-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
382.1 µs382.1 µs
test_cache_hit_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
4.9 ms4.9 ms
test_internal_cache_hit_microbenchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
152.5 µs152.6 µs
test_cache_invalidate_benchmark[meth-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
test_cache_miss_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
test_concurrent_cache_hit_benchmark[meth-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
3.2 ms3.2 ms
test_cache_hit_benchmark[meth-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
9.9 ms10 ms
test_cache_info_benchmark[func-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
2 ms2 ms
test_cache_info_benchmark[func-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
2 ms2 ms
test_cache_info_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
2 ms2 ms
test_cache_miss_benchmark[meth-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
1.4 ms1.4 ms
test_concurrent_cache_hit_benchmark[meth-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
9 ms9 ms
test_cache_invalidate_benchmark[meth-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
test_cache_miss_benchmark[meth-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
1.4 ms1.4 ms
test_cache_ttl_expiry_benchmark[meth-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
147.5 µs148.1 µs
test_cache_miss_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
-1%
1.1 ms1.1 ms
test_concurrent_cache_hit_benchmark[func-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
-1%
8.4 ms8.4 ms
test_cache_invalidate_benchmark[meth-bounded]
benchmark.py
CodSpeed Performance Gauge
-1%
1.1 ms1.1 ms
test_cache_invalidate_benchmark[meth-unbounded]
benchmark.py
CodSpeed Performance Gauge
-1%
1.1 ms1.1 ms
test_cache_ttl_expiry_benchmark[meth-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
-1%
145 µs146.2 µs
test_cache_ttl_expiry_benchmark[func-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
-1%
131.9 µs133.3 µs
test_cache_ttl_expiry_benchmark[func-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
-1%
132 µs133.5 µs
test_concurrent_cache_hit_benchmark[func-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
-3%
9.8 ms10.1 ms
test_concurrent_cache_hit_benchmark[meth-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
-3%
10.4 ms10.8 ms

Commits

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