From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id eCqINC4TpV+vIgAA0tVLHw (envelope-from ) for ; Fri, 06 Nov 2020 09:11:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QJdDMC4TpV9NBgAAB5/wlQ (envelope-from ) for ; Fri, 06 Nov 2020 09:11:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4EFCF9402DD for ; Fri, 6 Nov 2020 09:11:10 +0000 (UTC) Received: from localhost ([::1]:41886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kaxm1-0004KG-81 for larch@yhetil.org; Fri, 06 Nov 2020 04:11:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60794) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaxlu-0004JV-A5 for bug-guix@gnu.org; Fri, 06 Nov 2020 04:11:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43520) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kaxlu-0005qM-1O for bug-guix@gnu.org; Fri, 06 Nov 2020 04:11:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kaxlt-0007iD-Sx for bug-guix@gnu.org; Fri, 06 Nov 2020 04:11:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#44053: =?UTF-8?Q?=E2=80=98xdg-mime-database=E2=80=99?= profile hook is slow Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 06 Nov 2020 09:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44053 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Luis Felipe Received: via spool by 44053-submit@debbugs.gnu.org id=B44053.160465384529621 (code B ref 44053); Fri, 06 Nov 2020 09:11:01 +0000 Received: (at 44053) by debbugs.gnu.org; 6 Nov 2020 09:10:45 +0000 Received: from localhost ([127.0.0.1]:55066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kaxlc-0007hh-Vg for submit@debbugs.gnu.org; Fri, 06 Nov 2020 04:10:45 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60628) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kaxlb-0007hT-JV for 44053@debbugs.gnu.org; Fri, 06 Nov 2020 04:10:43 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49386) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kaxlW-0005be-Bi; Fri, 06 Nov 2020 04:10:38 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=57166 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kaxlV-0003Xi-HD; Fri, 06 Nov 2020 04:10:37 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Message-ID: <87blga3l7e.fsf@gnu.org> References: <87o8l7pple.fsf@gnu.org> <87v9f842uu.fsf@gmail.com> <87v9f7gspm.fsf@dismail.de> <874kmn9adz.fsf_-_@gnu.org> <87ft5zqn2a.fsf@dismail.de> <87sg9sm2qf.fsf@gnu.org> <87ft5rncn5.fsf@gnu.org> <86blgeggo8.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 16 Brumaire an 229 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 06 Nov 2020 10:10:35 +0100 In-Reply-To: (Luis Felipe's message of "Thu, 05 Nov 2020 14:47:55 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel , "44053@debbugs.gnu.org" <44053@debbugs.gnu.org>, Maxim Cournoyer Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -0.01 X-TUID: 0GKRtK+gX7Y3 Hi, Luis Felipe skribis: > =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original = Message =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 > On Tuesday, November 3, 2020 11:32 PM, zimoun = wrote: > >> Hi, >> >> > https://git.savannah.gnu.org/cgit/guix.git/commit/?id=3D76ea70bd70aeb7= 6570445c11cea2f98139192b54 >> >> 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 5e7cf66fb35780f930= ad0bc5fe21ac330df4411d). Please note that the change above addresses only one specific source of slowness, the =E2=80=98xdg-mime-database=E2=80=99 hook, and only in specifi= c cases. It=E2=80=99s good to look at the overall timing of =E2=80=98guix install=E2= =80=99, because that=E2=80=99s 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=3D1 [...] > injertando 12 paquetes en /gnu/store/anknpdyhmfirw3rz2k9zm9kiyak8yy1s-cup= s-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=C3=A9 de temas de iconos de GTK+... > construyendo los ficheros de cach=C3=A9 para los m=C3=A9todos de entrada = de GTK+... > construyendo perfil con 86 paquetes... > > > real 8m38,121s > user 0m2,742s > sys 0m0,338s Here it=E2=80=99s likely that grafting is what=E2=80=99s taking the most ti= me on a spinning disk. We should hack (guix status) so it can optionally prefix each event with a timestamp. As far as =E2=80=98xdg-mime-database=E2=80=99 is concerned, it should be do= wn to 0s, unless your profile contains one of the packages I cited (libreoffice, gcr, hugin, etc.). Thanks, Ludo=E2=80=99.