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 QNkPIpUTpV9XMgAA0tVLHw (envelope-from ) for ; Fri, 06 Nov 2020 09:12:53 +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 CDniHZUTpV/VBQAAB5/wlQ (envelope-from ) for ; Fri, 06 Nov 2020 09:12:53 +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 52A109408E7 for ; Fri, 6 Nov 2020 09:12:53 +0000 (UTC) Received: from localhost ([::1]:45220 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kaxng-0005mJ-Ad for larch@yhetil.org; Fri, 06 Nov 2020 04:12:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:32962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaxnL-0005l7-A5 for guix-devel@gnu.org; Fri, 06 Nov 2020 04:12:31 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49507) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kaxnK-0006MK-VI; Fri, 06 Nov 2020 04:12:30 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=57168 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kaxnI-0003qy-PX; Fri, 06 Nov 2020 04:12:29 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: zimoun Subject: Re: bug#44053: =?utf-8?Q?=E2=80=98xdg-mime-database=E2=80=99?= profile hook is slow 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> <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:12:27 +0100 In-Reply-To: <86blgeggo8.fsf@gmail.com> (zimoun's message of "Wed, 04 Nov 2020 00:32:39 +0100") Message-ID: <875z6i3l38.fsf@gnu.org> 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-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel , Luis Felipe , 44053@debbugs.gnu.org, Maxim Cournoyer Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" 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 guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -0.01 X-TUID: Ja50YwBmN4gR Hello, zimoun skribis: >> 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 p= ackages, at >> least not without changing =E2=80=98update-mime-database=E2=80=99 or re-= implementing >> parts of it on our side. > > =E2=80=99shared-mime-info=E2=80=99 is simply a package, right? So what d= oes it means: > =C2=ABFind a way to avoid reprocessing 'shared-mime-info'=C2=BB in: > > ;; 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))))))) =E2=80=98shared-mime-info=E2=80=99 contains =E2=80=98share/mime/freedesktop= .org.xml=E2=80=99, which is by far where =E2=80=98update-mime-database=E2=80=99 spends most of its time. But it=E2=80=99s wasteful because =E2=80=98shared-mime-info=E2=80=99 alread= y contains the result of running =E2=80=98update-mime-database=E2=80=99 on itself. HTH! Ludo=E2=80=99.