bug#44053: ‘xdg-mime-database’ profile hook is slow

2020-11-08 Thread Ludovic Courtès
Hi, Luis Felipe skribis: > Compared to grafting, the last step "construyendo perfil con X paquetes..." > ("building profile with X packages..."), just stays there without change for > several minutes, so it actually seems slower to me. Initially, I thought that > guix had frozen. > > Also,

bug#44053: ‘xdg-mime-database’ profile hook is slow

2020-11-06 Thread Luis Felipe via Bug reports for GNU Guix
‐‐‐ Original Message ‐‐‐ On Friday, November 6, 2020 9:10 AM, Ludovic Courtès wrote: > Hi, > > Luis Felipe luis.felipe...@protonmail.com skribis: > > > ‐‐‐ Original Message ‐‐‐ > > On Tuesday, November 3, 2020 11:32 PM, zimoun zimon.touto...@gmail.com > > wrote: > > > > > Hi, >

bug#44053: ‘xdg-mime-database’ profile hook is slow

2020-11-06 Thread zimoun
Hi, On Thu, 05 Nov 2020 at 17:59, Luis Felipe wrote: Therefore, it is nice improvement! :-) > real 0m56,245s > user 0m4,324s > sys 0m0,218s > real 0m43,272s > user 0m4,214s > sys 0m0,200s Because, I bet that most of the time is spent in the “time-machine” part. I mean, compare with:

bug#44053: ‘xdg-mime-database’ profile hook is slow

2020-11-06 Thread Ludovic Courtès
Hello, zimoun skribis: >> So it would seem we cannot simply used the pre-built database from >> ‘shared-mime-info’ and merge it with that of the other packages, at >> least not without changing ‘update-mime-database’ or re-implementing >> parts of it on our side. > > ’shared-mime-info’ is

bug#44053: ‘xdg-mime-database’ profile hook is slow

2020-11-06 Thread Ludovic Courtès
Hi, Luis Felipe skribis: > ‐‐‐ Original Message ‐‐‐ > On Tuesday, November 3, 2020 11:32 PM, zimoun > wrote: > >> Hi, >> >> > https://git.savannah.gnu.org/cgit/guix.git/commit/?id=76ea70bd70aeb76570445c11cea2f98139192b54 >> >> Clever workaround! What are now the performances on

bug#44053: ‘xdg-mime-database’ profile hook is slow

2020-11-05 Thread Luis Felipe via Bug reports for GNU Guix
‐‐‐ Original Message ‐‐‐ On Thursday, November 5, 2020 4:10 PM, zimoun wrote: > Hi, > > On Thu, 05 Nov 2020 at 14:47, Luis Felipe luis.felipe...@protonmail.com wrote: > > > > Clever workaround! What are now the performances on previous examples > > > (same profiles and same packages)? >

bug#44053: ‘xdg-mime-database’ profile hook is slow

2020-11-05 Thread zimoun
Hi, On Thu, 05 Nov 2020 at 14:47, Luis Felipe wrote: >> 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). > > > $ time guix package

bug#44053: ‘xdg-mime-database’ profile hook is slow

2020-11-05 Thread Luis Felipe via Bug reports for GNU Guix
‐‐‐ Original Message ‐‐‐ On Tuesday, November 3, 2020 11:32 PM, zimoun 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

bug#44053: ‘xdg-mime-database’ profile hook is slow

2020-11-03 Thread zimoun
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)? > Unfortunately, AIUI, > > update-mime-database(X ∪ Y) ≠ update-mime-database(X)

bug#44053: ‘xdg-mime-database’ profile hook is slow

2020-11-02 Thread Ludovic Courtès
Ludovic Courtès skribis: > Ludovic Courtès skribis: > >> Apart from LibreOffice, I found that ‘share/mime/packages’ is provided >> by at least: hugin, gcr, fontforge. Most GUI packages don’t have it. >> So in practice, we’re often rebuilding the exact same database. > > On closer inspection,

bug#44053: ‘xdg-mime-database’ profile hook is slow

2020-11-02 Thread Ludovic Courtès
Ludovic Courtès skribis: > Apart from LibreOffice, I found that ‘share/mime/packages’ is provided > by at least: hugin, gcr, fontforge. Most GUI packages don’t have it. > So in practice, we’re often rebuilding the exact same database. On closer inspection, the time-consuming bit is processing

bug#44053: ‘xdg-mime-database’ profile hook is slow

2020-11-02 Thread Ludovic Courtès
Hi, Joshua Branson skribis: > The "XDG MIME database" takes a while. > > #+BEGIN_SRC sh :results output :exports both > time guix build --check $(guix gc -R $(guix gc --derivers $(readlink -f > ~/.guix-profile)) |grep xdg-mime-database.drv) > #+END_SRC > > > #+RESULTS: > : The following

bug#44053: ‘xdg-mime-database’ profile hook is slow

2020-10-28 Thread Luis Felipe via Bug reports for GNU Guix
‐‐‐ Original Message ‐‐‐ On Tuesday, October 27, 2020 11:14 PM, Joshua Branson wrote: [...] > > #+BEGIN_SRC sh :results output :exports both > time guix build --check $(guix gc -R $(guix gc --derivers $(readlink -f > ~/.guix-profile)) |grep xdg-mime-database.drv) > #+END_SRC I

bug#44053: ‘xdg-mime-database’ profile hook is slow

2020-10-28 Thread Joshua Branson via Bug reports for GNU Guix
I am just posting my performance numbers. Hopefully you all find it helpful. I am running Guix System on a Lenovo Thinkpad T400 with 8GB on a hard drive. #+BEGIN_SRC sh :results output :exports both guix describe #+END_SRC #+RESULTS: #+begin_example Generation 49 Oct 20 2020 01:15:33