Closed as not planned
Closed as not planned
Description
The inference tip cache is byzantine, still misses a portion of the proper cache key (**kwargs
), and for that reason we can't rewrite it as an lru cache:
astroid/astroid/inference_tip.py
Lines 35 to 64 in 835de84
Since a cache with a maxsize of 1 still produces most of the performance upside, explore replacing the cache with a single reference to the last inference tip result. Then also provide a way to clear that result from clear_inference_tip_cache()
.
See discussion at #2181.
Measure the performance difference when linting large packages like home-assistant
.