Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o, Chun-Yu Shei <cshei@××××××.com>
Subject: Re: [gentoo-portage-dev] [PATCH] Add caching to use_reduce, vercmp, and catpkgsplit
Date: Mon, 13 Jul 2020 17:28:41
Message-Id: 763973a2-2534-e088-19b7-248e5c18e12f@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH] Add caching to use_reduce, vercmp, and catpkgsplit by Chun-Yu Shei
1 On 7/12/20 11:30 PM, Chun-Yu Shei wrote:
2 > Each of these functions is called repeatedly with the same arguments
3 > many times. Cache sizes were selected to minimize memory use increase,
4 > while still providing about the same speedup compared to a cache with
5 > unbounded size. "emerge -uDvpU --with-bdeps=y @world" runtime decreases
6 > from 44.32s -> 29.94s -- a 48% speedup, while the maximum value of the
7 > RES column in htop increases from 280 MB -> 290 MB.
8 >
9 > "emerge -ep @world" time slightly decreases from 18.77s -> 17.93, while
10 > max observed RES value actually decreases from 228 MB -> 214 MB (similar
11 > values observed across a few before/after runs).
12 > ---
13 > lib/portage/dep/__init__.py | 107 +++++++++++++++++++++---------------
14 > lib/portage/versions.py | 3 +
15 > 2 files changed, 67 insertions(+), 43 deletions(-)
16
17 Merged:
18
19 https://gitweb.gentoo.org/proj/portage.git/commit/?id=d9ee5b09664ab2255b62c1d52d554721ef8b716a
20 --
21 Thanks,
22 Zac

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies