unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Luis Felipe <luis.felipe.la@protonmail.com>
Cc: guix-devel <guix-devel@gnu.org>,
	"44053@debbugs.gnu.org" <44053@debbugs.gnu.org>,
	Maxim Cournoyer <maxim.cournoyer@gmail.com>
Subject: bug#44053: ‘xdg-mime-database’ profile hook is slow
Date: Fri, 06 Nov 2020 10:10:35 +0100	[thread overview]
Message-ID: <87blga3l7e.fsf@gnu.org> (raw)
In-Reply-To: <wfCkfOh1kZkBBqR2DYrffbz9xGwrXpB5lNfNNbLywaXO2i620ONaFST7pkyF_vskC20eUnLuV36YyO6t8v6__7oyVbOzaCoba1muCHDP0S4=@protonmail.com> (Luis Felipe's message of "Thu, 05 Nov 2020 14:47:55 +0000")

Hi,

Luis Felipe <luis.felipe.la@protonmail.com> skribis:

> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Tuesday, November 3, 2020 11:32 PM, zimoun <zimon.toutoune@gmail.com> wrote:
>
>> Hi,
>>
>> > https://git.savannah.gnu.org/cgit/guix.git/commit/?id=76ea70bd70aeb76570445c11cea2f98139192b54
>>
>> Clever workaround! What are now the performances on previous examples
>> (same profiles and same packages)?
>
> In my case there seem to be no improvement (using Guix 5e7cf66fb35780f930ad0bc5fe21ac330df4411d).

Please note that the change above addresses only one specific source of
slowness, the ‘xdg-mime-database’ hook, and only in specific cases.

It’s good to look at the overall timing of ‘guix install’, because
that’s what matters in the end, but as we work on optimizing it, we have
to look at specific aspects of it.

> $ time guix package -i perl --max-jobs=1

[...]

> injertando 12 paquetes en /gnu/store/anknpdyhmfirw3rz2k9zm9kiyak8yy1s-cups-filters-1.27.4.drv ...
> construyendo la base de datos MIME XDG...
> injertando 3 paquetes en /gnu/store/xgny7xbl635g8na8x03x4cdr7abiphiw-cups-2.3.3.drv ...
> injertando 20 paquetes en /gnu/store/yhjl68x7kcjbv40v823x4hl8rvv8l50b-gtk+-2.24.32.drv ...
> injertando 21 paquetes en /gnu/store/kq37fnw8335f1hqc3j4hhqqcdnhl371p-gtk+-3.24.20.drv ...
> creando la caché de temas de iconos de GTK+...
> construyendo los ficheros de caché para los métodos de entrada de GTK+...
> construyendo perfil con 86 paquetes...
>
>
> real	8m38,121s
> user	0m2,742s
> sys	0m0,338s

Here it’s likely that grafting is what’s taking the most time on a
spinning disk.

We should hack (guix status) so it can optionally prefix each event with
a timestamp.

As far as ‘xdg-mime-database’ is concerned, it should be down to 0s,
unless your profile contains one of the packages I cited (libreoffice,
gcr, hugin, etc.).

Thanks,
Ludo’.




      parent reply	other threads:[~2020-11-06  9:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87o8l7pple.fsf@gnu.org>
     [not found] ` <sqv1qTRO4PZuOuanFOc1Dw6QlIMeczAQjg9erpoU9CmuWjuqYl7H87lpEfl7w2zNAT755yE_djMRXz8fKFiXZ8ddUJSdtLkSCoWIl9KREnw=@protonmail.com>
     [not found]   ` <87h7qxhncq.fsf@gnu.org>
     [not found]     ` <3aQjRn5jGhxHrhAmuB3MfLRjSxAp3PVFu1vL7_GV1ucGibzYURCtMqHN4oeyGb5xez2xYM3loEJIECrVdnAGZBZvf0N1bGXN-80mO6Ymr6k=@protonmail.com>
     [not found]       ` <87sgagv8qt.fsf@dismail.de>
     [not found]         ` <87o8l279eb.fsf@gnu.org>
     [not found]           ` <CAJ3okZ3DR0qDq5qwY-ZBboBUFcCnv5bAYR8RuUSW0dSj8SRyyA@mail.gmail.com>
     [not found]             ` <4JD1z15e92ccv6WXcMS5IiNJnDwR6P3bkIwtPWLUPYDVCUHYDoekpifyj3GQtnEq1LCKftbL-FV1hp162A1mid2EmjLMbWlxQ05aE9vGyf0=@protonmail.com>
     [not found]               ` <87v9f842uu.fsf@gmail.com>
     [not found]                 ` <CAJ3okZ2WTcZ+JLYUCEcU6CESpOOjHcdFEWirSOCfrZFbXeLzAg@mail.gmail.com>
     [not found]                   ` <87v9f7gspm.fsf@dismail.de>
     [not found]                     ` <874kmn9adz.fsf_-_@gnu.org>
2020-10-27 23:14                       ` bug#44053: ‘xdg-mime-database’ profile hook is slow Joshua Branson via Bug reports for GNU Guix
2020-11-02 11:12                         ` Ludovic Courtès
     [not found]                           ` <87ft5rncn5.fsf@gnu.org>
     [not found]                             ` <86blgeggo8.fsf@gmail.com>
     [not found]                               ` <wfCkfOh1kZkBBqR2DYrffbz9xGwrXpB5lNfNNbLywaXO2i620ONaFST7pkyF_vskC20eUnLuV36YyO6t8v6__7oyVbOzaCoba1muCHDP0S4=@protonmail.com>
2020-11-06  9:10                                 ` Ludovic Courtès [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87blga3l7e.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=44053@debbugs.gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=luis.felipe.la@protonmail.com \
    --cc=maxim.cournoyer@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).