From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iL1mDa3ooV+sBAAA0tVLHw (envelope-from ) for ; Tue, 03 Nov 2020 23:33:01 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id KBMgCa3ooV+uBQAAbx9fmQ (envelope-from ) for ; Tue, 03 Nov 2020 23:33:01 +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 EF4E09402B4 for ; Tue, 3 Nov 2020 23:33:00 +0000 (UTC) Received: from localhost ([::1]:41190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ka5nP-00036b-Va for larch@yhetil.org; Tue, 03 Nov 2020 18:32:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ka5nB-00036L-B3 for guix-devel@gnu.org; Tue, 03 Nov 2020 18:32:45 -0500 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:33241) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ka5n9-0005WT-9f; Tue, 03 Nov 2020 18:32:44 -0500 Received: by mail-wr1-x42e.google.com with SMTP id b8so20208877wrn.0; Tue, 03 Nov 2020 15:32:42 -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=YGjoTCMP0EMFF5EZE6Bz9tbqqNCQmDC+aWtMoPlhBClvGhAmIKvuCbZjoMRMU/bnq4 IA3ltMcaxbhJxrS6I54mIwdvaCjkNbk3CjCOdX1FpHVC9l3hjGKTlClanNPzQ3e518QC 32Ex+3N5/HS1ZtXbqE8460OQDNW+M5bUJVtFS8E7hckIGcBGuOF8WFgWiut63CK8/2oz LiI+7aMuJHbSeDuebhbIYh1JTi1C6bjmzuOzWBoRSn5dH7DeLWBo0/GMLi8uS3QS/slq lOV+2RihHNyQfDXwPhvZ7X8SJern4UJaQ+k8ZbhO6TnHJu0Lh+LEjex+q8KEKaMR3NwY 40SA== X-Gm-Message-State: AOAM530NTuz6E4NQoOy1oawUCVk6xcQ/4K3/Z30uxXjeZcnjPHNSMG4O oRw34PUZay+F6ihWKgDRa+E= 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 Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x42e.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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=pass header.d=gmail.com header.s=20161025 header.b=K3gKMvzq; dmarc=pass (policy=none) header.from=gmail.com; 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.21 X-TUID: HfCvIm3y1WGl 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