Gentoo Archives: gentoo-portage-dev

From: Francesco Riosa <vivo75@×××××.com>
To: Michael 'veremitz' Everitt <gentoo@×××××××.xyz>, gentoo-portage-dev@l.g.o, Sid Spry <sid@××××.us>, Zac Medico <zmedico@g.o>
Subject: Re: [gentoo-portage-dev] [PATCH 1/3] Add caching to catpkgsplit function
Date: Mon, 06 Jul 2020 16:10:40
Message-Id: 4a1f9ee3-a6d9-28a4-7973-6e5cd0da5d5b@gmail.com
1 Il 06/07/20 17:50, Michael 'veremitz' Everitt ha scritto:
2 > On 06/07/20 16:26, Francesco Riosa wrote:
3 >> Il 29/06/20 03:58, Sid Spry ha scritto:
4 >>> There are libraries that provide decorators, etc, for caching and
5 >>> memoization.
6 >>> Have you evaluated any of those? One is available in the standard library:
7 >>> https://docs.python.org/dev/library/functools.html#functools.lru_cache
8 >>>
9 >>> I comment as this would increase code clarity.
10 >>>
11 >> I think portage developers try hard to avoid external dependancies
12 >> I hope hard they do
13 >>
14 >>
15 > I think the key word here is 'external' - anything which is part of the
16 > python standard library is game for inclusion in portage, and has/does
17 > provide much needed optimisation. Many of the issues in portage are
18 > so-called "solved problems" in computing terms, and as such, we should take
19 > advantage of these to improve performance at every available opportunity.
20 > Of course, there are presently only one, two or three key developers able
21 > to make/test these changes (indeed at scale) so progress is often slower
22 > than desirable in current circumstances...
23 >
24 > [sent direct due to posting restrictions...]
25 yes I've replied too fast and didn't notice Sid was referring to
26 _standard_ libraries (not even recent additions)
27
28 sorry for the noise
29
30 - Francesco

Replies

Subject Author
Re: [gentoo-portage-dev] [PATCH 1/3] Add caching to catpkgsplit function Chun-Yu Shei <cshei@××××××.com>