Re: 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, ev

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

2020-11-06 Thread Luis Felipe
‐‐‐ 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, > >

Re: 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:

Re: 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 simply

Re: 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 previou

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

2020-11-05 Thread Luis Felipe
‐‐‐ 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)? > >

Re: 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 -

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

2020-11-05 Thread Luis Felipe
‐‐‐ 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 pack

Re: 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)

Re: 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, th

Re: 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 ‘

Re: 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 profile

Re: ‘xdg-mime-database’ profile hook is slow

2020-10-29 Thread Luis Felipe
‐‐‐ Original Message ‐‐‐ On Wednesday, October 28, 2020 10:38 PM, zimoun wrote: [...] > Does it make sense? It makes more sense now, thank you zimoun :) > Well from my POV, the information is #44053 is enough for now. :-) Ok.

Re: ‘xdg-mime-database’ profile hook is slow

2020-10-28 Thread zimoun
Dear, On Wed, 28 Oct 2020 at 21:48, Luis Felipe 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 haven't run this command because I don't know wh

Re: ‘xdg-mime-database’ profile hook is slow

2020-10-28 Thread Luis Felipe
‐‐‐ 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 haven'

Re: ‘xdg-mime-database’ profile hook is slow

2020-10-27 Thread Joshua Branson
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(cu

Re: ‘xdg-mime-database’ profile hook is slow

2020-10-21 Thread zimoun
Hi Ludo, On Wed, 21 Oct 2020 at 11:49, Ludovic Courtès wrote: > It’s worse on a cold cache: Well, a lot of Guix operations are really slow on cold cache. ;-) > And it’s probably worse on spinning disks? What timings do you get? Some timings are provided by bug report #44053 which tracks the

‘xdg-mime-database’ profile hook is slow

2020-10-21 Thread Ludovic Courtès
Hi, Joshua Branson skribis: > I don't want to complain (because I'm probably not going to be able to > fix any issues that I spot), but it does seem to take a while for me to > install packages, at least the XDG mime step. It's not a huge issue for > me. I just realize that installing packages