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 ms0.migadu.com with LMTPS id EGFZNZ8pU2EyCQEAgWs5BA (envelope-from ) for ; Tue, 28 Sep 2021 16:41:35 +0200 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 cBHVMJ8pU2GacQAAbx9fmQ (envelope-from ) for ; Tue, 28 Sep 2021 14:41:35 +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 440E834C85 for ; Tue, 28 Sep 2021 16:41:35 +0200 (CEST) Received: from localhost ([::1]:38120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVEIX-0001cD-Ad for larch@yhetil.org; Tue, 28 Sep 2021 10:41:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35404) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVEH5-00004x-Ey for guix-patches@gnu.org; Tue, 28 Sep 2021 10:40:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35093) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVEH4-0001Z6-6a for guix-patches@gnu.org; Tue, 28 Sep 2021 10:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mVEH4-0002m0-3g for guix-patches@gnu.org; Tue, 28 Sep 2021 10:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50755] [PATCH v3] import: Generate list of importers based on available modules Resent-From: pinoaffe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 28 Sep 2021 14:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50755 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos Cc: 50755@debbugs.gnu.org, zimoun Received: via spool by 50755-submit@debbugs.gnu.org id=B50755.163283996810615 (code B ref 50755); Tue, 28 Sep 2021 14:40:02 +0000 Received: (at 50755) by debbugs.gnu.org; 28 Sep 2021 14:39:28 +0000 Received: from localhost ([127.0.0.1]:46639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVEGV-0002l9-NU for submit@debbugs.gnu.org; Tue, 28 Sep 2021 10:39:27 -0400 Received: from mail.cock.li ([37.120.193.124]:57030) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVEGR-0002kr-Tb for 50755@debbugs.gnu.org; Tue, 28 Sep 2021 10:39:26 -0400 References: <87tuibh43w.fsf@airmail.cc> <87mtnxswwq.fsf@airmail.cc> <4ddbb2adfa86c9ed2e1cf01ad5c1d0129553cbae.camel@telenet.be> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=airmail.cc; s=mail; t=1632839957; bh=5hWwLkWIdoVsDKcg6IbIU3Cw8iTwYzWp2vAfttY1Pqk=; h=References:From:To:Cc:Subject:In-reply-to:Date:From; b=UC9nHUrfHv1gi8P1pOl3vAHyrQ8c3OlCRMyzGtnGIdSdOmgbIOD3ihi9BYHAXE1it 1Kqg78yYpNW2035CBmZ18usXcoKMLm9uALfVsUc8TNAuR71Bokhpu7nPILfjoA8Z3p U5wDdccPt8nz1rMMsucW7ToW1aHzed01ofQiUiQUHpkaFLshq+tCinCDMk8YZ0QoNP wz2/1KuCK7sUfEn/VXh6h6T+orpc8qkIV2kjzFsTvOVPW15fjxlMA2jYM4isWUoVsO XDP/JysU3HkSieiEY2SZlrLbO8sd/RqzkoDiAA844/XVCsXaybmduqjyTFXKBu68Lh KwEn8JhIknrHQ== User-agent: mu4e 1.4.15; emacs 27.2 From: pinoaffe In-reply-to: <4ddbb2adfa86c9ed2e1cf01ad5c1d0129553cbae.camel@telenet.be> Date: Tue, 28 Sep 2021 16:39:16 +0200 Message-ID: <87k0j0hii3.fsf@airmail.cc> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632840095; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=eY9fbVYfxv5yvs3HP0VSoTjjdmeJ79qDnUbvlr+y0ww=; b=Sm7Ve45rNWMtBlYjZ4dW8+H1/QjimLXI4vd+LepiIJhhjtodx88U3/DiF99zrBY40tBe2c MR/kHCZYCfFvKI4jeqidoCp+CzJDEuEt+oz1Prcecs/ogMsSKQCaagGDReAlPInwPgFJoI HO8Q8CqPqspUCphyPG5YTQOXt70ytSDAr6Zb6PqnwM6Ivl3z4MrrU5SZTKLTqBPZwOKxFB Y9vtGUMicdWX9pekUWhrZqn0fcdQXR+Twof37uWXh5pr5rJ4R0WN3vx77XTXm6D1JsjLi2 U8RO6CSDSORgqU+NmFizvKBS4dFdkCKHsPwZLi5hRnREKTNQRiMrXKvMNDvn9A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632840095; a=rsa-sha256; cv=none; b=osu818dMG4bcYr2clZ6IQ+j2kjJU6FWGlpoDOUhn5U/fWtl5/T6AT5Nis6sPF8TeTjMx0/ wRVelxCXqWL+wSjWgAWTl3tM8CXwhSRSAYxjl+3QGEM0JeEosiMvTZq9ihGqes9eiAHjaa fJq2HoXulEBvCw675IPmvlh2hZw5nmEP3wojVLQjCWCqAAPzGFKX33hh9ZVIDdfH1Iu3Qp wi9BSdVHXlysnsf7GM/88j23TtdimV0HwwhwoeNuxsque/a5fxXaspnXyfrjWuwzBgkk43 PyUzijwkwkquG2vn6BeGHwLAZIwtr7PxL8WcR/CHAIfZj5QAw24TE3rXaqc/tA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=airmail.cc header.s=mail header.b=UC9nHUrf; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.80 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=airmail.cc header.s=mail header.b=UC9nHUrf; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 440E834C85 X-Spam-Score: -1.80 X-Migadu-Scanner: scn1.migadu.com X-TUID: 5W8L8ChEX6Rh Hi, Maxime Devos writes: > To only measure the time required for defiing 'importers', wrap > delete-duplicates in a call to 'time' from (ice-9 time). Running (time (for-each (lambda (_) (delete-duplicates (filter-map (lambda (module) (match (module-name module) (`(guix scripts import ,importer) (symbol->string importer)) (#t #f))) (all-modules (map (lambda (entry) `(,entry . "guix/scripts/import")) %load-path))))) (iota 1000))) in a guix repl on my system results in clock utime stime cutime cstime gctime 0.96 1.67 0.07 0.00 0.00 1.19 If I'm interpreting that correctly that would amount to a couple of thousands of a second per run Kind regards, pinoaffe