Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] emerge: use asyncio interfaces for spinner during owner lookup (bug 591760)
Date: Mon, 27 Mar 2017 02:26:02
Message-Id: CAMiTYSp8zd4wMwTE4b9d7P8Wmcc6VcNxp8YDOvM+Z4jH3DRYgg@mail.gmail.com
In Reply to: Re: [gentoo-portage-dev] [PATCH] emerge: use asyncio interfaces for spinner during owner lookup (bug 591760) by Brian Dolbec
1 On Sun, Mar 26, 2017 at 6:58 PM, Brian Dolbec <dolsen@g.o> wrote:
2 > On Sun, 26 Mar 2017 18:01:01 -0700
3 > Zac Medico <zmedico@g.o> wrote:
4 >
5 >> X-Gentoo-bug: 591760
6 >> X-Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=591760
7 >> ---
8 >> pym/_emerge/depgraph.py | 13 ++++++++-----
9 >> pym/portage/dbapi/vartree.py | 22 +++++++++-------------
10 >> 2 files changed, 17 insertions(+), 18 deletions(-)
11 >>
12 > looks fine.
13
14 Thanks, pushed:
15
16 https://gitweb.gentoo.org/proj/portage.git/commit/?id=dfa317d0b8572a6c463ad5e778a8ca4633086f1b
17
18 > Question, will this help make the spinner more consistent with spin?
19
20 Well, that problem was already solved for the case where emerge is
21 looking up owners of files, which is the case that this code affects.
22
23 I'm sure there are plenty of other places where the spinner does not
24 update consistently. This occurs when the main (and only) thread goes
25 for a long time without calling depgraph._spinner_update(). For
26 example, some of the code called via the
27 depgraph._process_slot_conflicts method might we consuming a lot of
28 time without calling the _spinner_update method.
29 --
30 Thanks,
31 Zac

Replies