Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o, robbat2@g.o
Subject: Re: [gentoo-portage-dev] [PATCH 2/2] Replace multiprocessing.cpu_count with portage.util.cpuinfo.get_cpu_count
Date: Sat, 16 Feb 2019 06:58:27
Message-Id: 95ab1121-a0c2-b9ad-35c2-76d3c72e0926@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH 2/2] Replace multiprocessing.cpu_count with portage.util.cpuinfo.get_cpu_count by robbat2@gentoo.org
1 On 2/15/19 10:21 PM, robbat2@g.o wrote:
2 > From: "Robin H. Johnson" <robbat2@g.o>
3 >
4 > portage.util.cpuinfo.get_cpu_count was only used in one spot before, and
5 > other call-sites just used multiprocessing.cpu_count() directly.
6 >
7 > Replace all multiprocessing.cpu_count() calls with get_cpu_count() in
8 > portage.util.cpuinfo, to ensure consistency in CPU calculation.
9 >
10 > Signed-off-by: Robin H. Johnson <robbat2@g.o>
11 > ---
12 > lib/portage/dbapi/porttree.py | 4 ++--
13 > lib/portage/util/futures/executor/fork.py | 4 ++--
14 > lib/portage/util/futures/iter_completed.py | 18 +++++++++---------
15 > 3 files changed, 13 insertions(+), 13 deletions(-)
16
17 Series looks good, please merge.
18 --
19 Thanks,
20 Zac

Attachments

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