Re: [PATCH] Add caching to use_reduce, vercmp, and catpkgsplit

Zac Medico <[email protected]>
Newsgroups gmane.linux.gentoo.portage.devel
Message-ID <[email protected]>
On 7/12/20 11:30 PM, Chun-Yu Shei wrote:
> 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.94s -- a 48% speedup, while the maximum value of the
> RES column in htop increases from 280 MB -> 290 MB.
> 
> "emerge -ep @world" time slightly decreases from 18.77s -> 17.93, while
> max observed RES value actually decreases from 228 MB -> 214 MB (similar
> values observed across a few before/after runs).
> ---
>  lib/portage/dep/__init__.py | 107 +++++++++++++++++++++---------------
>  lib/portage/versions.py     |   3 +
>  2 files changed, 67 insertions(+), 43 deletions(-)

Merged:

https://gitweb.gentoo.org/proj/portage.git/commit/?id=d9ee5b09664ab2255b62c1d52d554721ef8b716a
-- 
Thanks,
Zac
signature.asc (application/pgp-signature, 981 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQKTBAEBCgB9FiEE8OgXaltWzqgSupCu0HX7jBBKPSAFAl8MmcRfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEYw
RTgxNzZBNUI1NkNFQTgxMkJBOTBBRUQwNzVGQjhDMTA0QTNEMjAACgkQ0HX7jBBK
PSAe0hAAg1yrmQxATodF0VcDtpiBC0cSnvF1dwj/uEY+X31+QcNRY/sZCV1aNZKa
bezpXTmJ0Miht6DtYb4MD0DSX7mrQbYJ22kg7R/aFt7gdaZCSN9Y27cYibhqKeli
EaVXhEBMx2rS3jLWCoh1e1mtx0wjLX0h7QgfB7wbBTRfPWVOfs/QctwektZ/j5IA
YMslFYDWABF3ibIy9UBkFV6cKtbqJgS4AnXlrdfnCT1bisn2kO1N5aSfNrxTh1vz
rRe0pEIeUdXOQMMWR2MCQOKz2tGUB6VDUNkP0CbW3pJohUSCmt0RFSK3uWsqTDvN
MmHP2DXosnwravP5XsL2FJ7t2Tkd1tYXguOiv0VhZhUkOY3Zuchs4Dp4RsH6V0Qp
BBp7Lx7XYFuXUsCUhoZEhUjMa1pBOqxwWFtrJlV0A7mXbqCGVg0lEeHwTP4tZUyG
KgW9S8oc3Ud6p7HG52KKaS256EPTspqxihTYBHALMS2+IdTD7wnRa0kr+ORhM348
fpxvmX2ISeJt4y0+xsVpvWpmAHDCmSuLuvuLT+pcC7ZAxs0FM7Hbb9uwn5SYjXE4
BnNx8fyc70qw55PJ0WfRYABzDRthwZi5LuIB5bJY6ZogkpfLc5isTM9X/3lco/FG
g4SLw8VOOMUY7GsGk80FSJhLX24jDIWbUvAVS48i3b3bHytdpyM=
=xdll
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.