1 |
On Mon, Sep 27, 2021 at 01:15:10PM -0400, Mike Gilbert wrote: |
2 |
> On Mon, Sep 27, 2021 at 12:23 PM Mike Pagano <mpagano@g.o> wrote: |
3 |
> > > Adding linux-info calls to pkg_pretend or pkg_setup causes slowdowns |
4 |
> > > when running emerge, so we should do so only when there is a |
5 |
> > > compensating benefit. |
6 |
> > |
7 |
> > Is this a significant slowdown? Do you have any numbers? |
8 |
> |
9 |
> Adding a check for CONFIG_PACKET to the dhcpcd ebuild adds around 7 |
10 |
> seconds of delay time to the pkg_setup and/or pkg_pretend phase on my |
11 |
> system. |
12 |
> |
13 |
> That's ok if a small number of packages are doing it, but it would |
14 |
> become quite annoying if a significant number of them get queued up. |
15 |
7 seconds is ridiculous. |
16 |
|
17 |
I think we need to strip out a lot of the crap about trying to detect |
18 |
things in the stuff being built, and reduce the check to the simplest |
19 |
possible form: |
20 |
$ time zgrep -w CONFIG_PACKET /proc/config.gz |
21 |
CONFIG_PACKET=y |
22 |
|
23 |
real 0m0.032s |
24 |
user 0m0.021s |
25 |
sys 0m0.018s |
26 |
|
27 |
-- |
28 |
Robin Hugh Johnson |
29 |
Gentoo Linux: Dev, Infra Lead, Foundation Treasurer |
30 |
E-Mail : robbat2@g.o |
31 |
GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85 |
32 |
GnuPG FP : 7D0B3CEB E9B85B1F 825BCECF EE05E6F6 A48F6136 |