On Thu, Jul 9, 2020 at 2:06 PM Chun-Yu Shei wrote:
> Hmm, that's strange... it seems to have made it to the list archives:
> https://archives.gentoo.org/gentoo-portage-dev/message/a4db905a64e3c1f6d88c4876e8291a65
>
> (but it is entirely possible that I used "git send-email" incorrectly)
>
Ahhh i
Hmm, that's strange... it seems to have made it to the list archives:
https://archives.gentoo.org/gentoo-portage-dev/message/a4db905a64e3c1f6d88c4876e8291a65
(but it is entirely possible that I used "git send-email" incorrectly)
On Thu, Jul 9, 2020 at 2:04 PM Alec Warner wrote:
>
>
> On Thu, Ju
On Thu, Jul 9, 2020 at 12:03 AM Chun-Yu Shei wrote:
> Awesome! Here's a patch that adds @lru_cache to use_reduce, vercmp, and
> catpkgsplit. use_reduce was split into 2 functions, with the outer one
> converting lists/sets to tuples so they can be hashed and creating a
> copy of the returned li
Each of these functions is called repeatedly with the same arguments
many times. Cache sizes were selected to minimize memory use increase,
while still providing about the same speedup compared to a cache with
unbounded size. "emerge -uDvpU --with-bdeps=y @world" runtime decreases
from 44.32s -> 29
Awesome! Here's a patch that adds @lru_cache to use_reduce, vercmp, and
catpkgsplit. use_reduce was split into 2 functions, with the outer one
converting lists/sets to tuples so they can be hashed and creating a
copy of the returned list (since the caller seems to modify it
sometimes). I tried t