Message391045
Raymond:
> 1) move the expensive get_functools_state_by_type() inside the code block that creates new links, so that it won't affect a full cache.
This should be as easy as adding a _functools_state pointer to struct lru_cache_object, init that pointer in lru_cache_new(), and then fetch it from self in infinite_lru_cache_wrapper() and bounded_lru_cache_wrapper(), no? Diff attached. |
|
Date |
User |
Action |
Args |
2021-04-14 08:24:46 | erlendaasland | set | recipients:
+ erlendaasland, rhettinger, vstinner, phsilva, petr.viktorin, serhiy.storchaka, corona10, pablogsal, miss-islington, shihai1991 |
2021-04-14 08:24:46 | erlendaasland | set | messageid: <1618388686.45.0.658208805533.issue40137@roundup.psfhosted.org> |
2021-04-14 08:24:46 | erlendaasland | link | issue40137 messages |
2021-04-14 08:24:46 | erlendaasland | create | |
|