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

Enforce event loop affinity for cache instances

#732Merged
Comparing
rodrigobnogueira:docs/thread-safety-limitation
(
bc5740a
) with
master
(
6b06d62
)
CodSpeed Performance Gauge
+11%
Improvement
2
Untouched
61
Skipped
4

Benchmarks

67 total
test_internal_cache_miss_microbenchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
+11%
108.1 µs97.1 µs
test_internal_cache_miss_microbenchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
+11%
108.9 µs98.1 µs
test_internal_cache_hit_microbenchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
+8%
152.7 µs141.5 µs
test_internal_cache_hit_microbenchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
+7%
152.5 µs142.1 µs
test_cache_clear_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
+7%
21.6 µs20.1 µs
test_internal_task_done_callback_microbenchmark[finished-func-unbounded]
benchmark.py
CodSpeed Performance Gauge
+2%
1.8 ms1.8 ms
test_cache_clear_benchmark[meth-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
+1%
21.5 µs21.2 µs
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[exception-func-bounded]
benchmark.py
CodSpeed Performance Gauge
+1%
1.7 ms1.7 ms
test_cache_clear_benchmark[meth-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
+1%
21.4 µs21.2 µs
test_cache_clear_benchmark[func-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
20.3 µs20.2 µs
test_internal_task_done_callback_microbenchmark[exception-func-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
1.7 ms1.7 ms
test_cache_info_benchmark[meth-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
2.3 ms2.3 ms
test_cache_info_benchmark[func-unbounded]
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_info_benchmark[meth-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
2.3 ms2.3 ms
test_cache_info_benchmark[func-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
2 ms2 ms
test_internal_task_done_callback_microbenchmark[cancelled-func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
1.6 ms1.6 ms
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_info_benchmark[func-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
2 ms2 ms
test_cache_invalidate_benchmark[func-bounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
372.5 µs372.6 µs
test_cache_invalidate_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
372.6 µs372.7 µs
test_cache_invalidate_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
373.7 µs373.9 µs
test_concurrent_cache_hit_benchmark[func-unbounded-ttl]
benchmark.py
CodSpeed Performance Gauge
0%
10.2 ms10.2 ms

Commits

Click on a commit to change the comparison range
Base
master
6b06d62
-0.39%
Make thread check opt-in with check_thread parameter
b8c4b90
13 days ago
-98.86%
refactor(benchmark): use factory functions for loop isolation
800a488
13 days ago
0%
docs: document multi-loop reuse pattern via __wrapped__
78b9871
13 days ago
×2.1
chore: revert benchmark fixes to verify performance baseline
f71a9d7
12 days ago
+0.14%
tests: ensure get_cached_fetcher reuses instance in threaded test
bc5740a
12 days ago
© 2026 CodSpeed Technology
Home Terms Privacy Docs