From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 03 18:32:49 2020 Received: (at 44053) by debbugs.gnu.org; 3 Nov 2020 23:32:49 +0000 Received: from localhost ([127.0.0.1]:46792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ka5nE-0007UR-Pc for submit@debbugs.gnu.org; Tue, 03 Nov 2020 18:32:49 -0500 Received: from mail-wr1-f54.google.com ([209.85.221.54]:39102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ka5nD-0007UD-2B for 44053@debbugs.gnu.org; Tue, 03 Nov 2020 18:32:47 -0500 Received: by mail-wr1-f54.google.com with SMTP id y12so20182573wrp.6 for <44053@debbugs.gnu.org>; Tue, 03 Nov 2020 15:32:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=BPJvZ+Lk8z1XZDoCVegR9fdlhNHTi8OMImZGhjWHLtw=; b=K3gKMvzqZUhFvrS2In7jJ4dro6x+QS9LgZYe806LTynYqDIEpbVnqohXjm8kvfNC3D 8N30Y7Pn+9Qe8mmUhluOSnXHLSsR532/BmKDGsnOpgnAWD7l6k7U+RsiHQMm5EQywZuD B+4TTerHIYrrWnSmGxcO4fcR+tTjgn3Ve8VyYn33kYYyEhZNHZiUNaGotP9OJeDgwEu7 XONBmARPLSzehyCRFm4CGk630hgTnqZrD78D8QS4dMH1ZtrYpTgC0A1qnsCoE0WbTQsS MpER8046U1/vWTNtBvn4ziY71i6sFC2ya6AP7AWXNoOZEnnQA/KMG/2yd+dXIJc3ygdz t5Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=BPJvZ+Lk8z1XZDoCVegR9fdlhNHTi8OMImZGhjWHLtw=; b=Zwo87JFVJLCQttI05qlfpISPK+z7PF+rZVE3Su24A+vjZxPI0zGJoYCUXdCDa550u/ +qcE0yH07JQ6xaQm/ns+RIhEbdaIUDk3HKFnGvWfSK5CXqoSiw+PZ390NcgfUljOSmt9 sZdO16unMYzTMemnKYtf0iArkHQIWfOfs30hWUVlI7F1+fKsm497yf1vI+LKQXnrZdLC YuxV6qrjdGJdpcKE+iEp9LSar7WJ9OwjT48blzPqF5Gvtlv8LNN1awBJHnD5Awmydznc nqOVG2dEnthrYHZ63hjgaLbLUQP0oeC3oU57aGqQHFfLjiR8SUYLqUztS5nM+ZF7gydU d/mQ== X-Gm-Message-State: AOAM532Msz1P8ztSjhuTx2FOMJG0UwheC7LCPbi/BBTmGnxgoFgceH88 Nu5IESgEVJ+gxihCDACJBWg= X-Google-Smtp-Source: ABdhPJwOKcSPkJXldWJgt/C6cPS6cMIVoaL7yOjhVjGGb+74+4jbnA73KbNbkdVk6Qkd/zH5n2rgnQ== X-Received: by 2002:adf:e54c:: with SMTP id z12mr981398wrm.350.1604446361267; Tue, 03 Nov 2020 15:32:41 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id a12sm210820wrr.31.2020.11.03.15.32.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Nov 2020 15:32:40 -0800 (PST) From: zimoun To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#44053: =?utf-8?Q?=E2=80=98xdg-mime-database=E2=80=99?= profile hook is slow In-Reply-To: <87ft5rncn5.fsf@gnu.org> References: <87o8l7pple.fsf@gnu.org> <87h7qxhncq.fsf@gnu.org> <3aQjRn5jGhxHrhAmuB3MfLRjSxAp3PVFu1vL7_GV1ucGibzYURCtMqHN4oeyGb5xez2xYM3loEJIECrVdnAGZBZvf0N1bGXN-80mO6Ymr6k=@protonmail.com> <87sgagv8qt.fsf@dismail.de> <87o8l279eb.fsf@gnu.org> <4JD1z15e92ccv6WXcMS5IiNJnDwR6P3bkIwtPWLUPYDVCUHYDoekpifyj3GQtnEq1LCKftbL-FV1hp162A1mid2EmjLMbWlxQ05aE9vGyf0=@protonmail.com> <87v9f842uu.fsf@gmail.com> <87v9f7gspm.fsf@dismail.de> <874kmn9adz.fsf_-_@gnu.org> <87ft5zqn2a.fsf@dismail.de> <87sg9sm2qf.fsf@gnu.org> <87ft5rncn5.fsf@gnu.org> Date: Wed, 04 Nov 2020 00:32:39 +0100 Message-ID: <86blgeggo8.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44053 Cc: guix-devel , Luis Felipe , 44053@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, > https://git.savannah.gnu.org/cgit/guix.git/commit/?id=3D76ea70bd70aeb76= 570445c11cea2f98139192b54 Clever workaround! What are now the performances on previous examples (same profiles and same packages)? > Unfortunately, AIUI, > > update-mime-database(X =E2=88=AA Y) =E2=89=A0 update-mime-database(X) = =E2=88=AA update-mime-database(Y) Hum? Interesting=E2=80=A6 well weird! If it is not a =E2=80=9Cmorphism=E2= =80=9D then it is not really an updater. Anyway. I am curious about the comparison: time(update-mime-database(X =E2=88=AA Y)) vs time(update-mime-database(X)) + time(update-mime-database(Y)) vs time(update-mime-database(X =E2=88=A9 Y)) > So it would seem we cannot simply used the pre-built database from > =E2=80=98shared-mime-info=E2=80=99 and merge it with that of the other pa= ckages, at > least not without changing =E2=80=98update-mime-database=E2=80=99 or re-i= mplementing > parts of it on our side. =E2=80=99shared-mime-info=E2=80=99 is simply a package, right? So what doe= s it means: =C2=ABFind a way to avoid reprocessing 'shared-mime-info'=C2=BB in: --8<---------------cut here---------------start------------->8--- ;; the database. TODO: Find a way to avoid reprocessing ;; 'shared-mime-info', which is the most expensive one. [...] (invoke #+(file-append shared-mime-info "/bin/update-mime-database") destdir))))))) --8<---------------cut here---------------end--------------->8--- ? Well, I miss why and how =E2=80=99shared-mime-info=E2=80=99 could be the= culprit here or what could be improved with =E2=80=9Cshared-mime-info=E2=80=9D? Maybe r= eplace the =E2=80=9Clazy reference=E2=80=9D by a strict one if it makes sense. All the best, simon