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

fix: auto-reset cache on event loop change instead of raising RuntimeError

#743Merged
Comparing
rodrigobnogueira:fix/auto-reset-event-loop
(
8e72f05
) with
master
(
7ef00b7
)
CodSpeed Performance Gauge
-1%
Untouched
63
Skipped
4

Benchmarks

67 total
test_internal_task_done_callback_microbenchmark[exception-func-unbounded]
benchmark.py
CodSpeed Performance Gauge
+2%
1.7 ms1.7 ms
test_internal_task_done_callback_microbenchmark[cancelled-func-unbounded]
benchmark.py
CodSpeed Performance Gauge
+2%
1.6 ms1.6 ms
test_internal_task_done_callback_microbenchmark[finished-func-unbounded]
benchmark.py
CodSpeed Performance Gauge
+1%
1.8 ms1.8 ms
test_internal_task_done_callback_microbenchmark[exception-func-bounded]
benchmark.py
CodSpeed Performance Gauge
+1%
1.7 ms1.7 ms
test_internal_task_done_callback_microbenchmark[finished-func-bounded]
benchmark.py
CodSpeed Performance Gauge
+1%
1.8 ms1.8 ms
test_internal_task_done_callback_microbenchmark[cancelled-func-bounded]
benchmark.py
CodSpeed Performance Gauge
+1%
1.6 ms1.6 ms
test_cache_hit_benchmark[meth-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
10.4 ms10.4 ms
test_cache_hit_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
5.3 ms5.3 ms
test_cache_hit_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
5.3 ms5.3 ms
test_cache_hit_benchmark[meth-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
10.4 ms10.4 ms
test_concurrent_cache_hit_benchmark[func-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
91.9 ms92.1 ms
test_cache_info_benchmark[meth-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
2.3 ms2.3 ms
test_concurrent_cache_hit_benchmark[meth-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
98.1 ms98.5 ms
test_concurrent_cache_hit_benchmark[func-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
79.8 ms80.2 ms
test_cache_invalidate_benchmark[meth-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
test_concurrent_cache_hit_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
-1%
25.5 ms25.6 ms
test_concurrent_cache_hit_benchmark[meth-bounded]
benchmark.py
CodSpeed Performance Gauge
-1%
30.7 ms30.8 ms
test_cache_miss_benchmark[meth-bounded]
benchmark.py
CodSpeed Performance Gauge
-1%
150.2 ms151 ms
test_cache_miss_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
-1%
144.2 ms145 ms
test_cache_hit_benchmark[meth-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
-1%
87.3 ms87.8 ms
test_cache_miss_benchmark[func-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
-1%
173.3 ms174.2 ms
test_cache_miss_benchmark[meth-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
-1%
179.1 ms180 ms
test_concurrent_cache_hit_benchmark[meth-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
-1%
85.8 ms86.3 ms
test_cache_miss_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
-1%
144.2 ms145 ms
test_cache_hit_benchmark[func-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
-1%
81.5 ms82 ms

Commits

Click on a commit to change the comparison range
Base
master
7ef00b7
-0.68%
feat: Allow `alru_cache` to automatically clear and rebind to the current event loop on cross-loop access instead of raising a `RuntimeError`.
8e72f05
3 days ago
© 2026 CodSpeed Technology
Home Terms Privacy Docs