From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0ApyIdTINWIO7wAAgWs5BA (envelope-from ) for ; Sat, 19 Mar 2022 13:13:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8NozGtTINWJxPQAAG6o9tA (envelope-from ) for ; Sat, 19 Mar 2022 13:13:08 +0100 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 0A4568C3B for ; Sat, 19 Mar 2022 13:13:07 +0100 (CET) Received: from localhost ([::1]:39888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVXxB-0001pN-Eq for larch@yhetil.org; Sat, 19 Mar 2022 08:13:05 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53360) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVXwM-0001nu-Tc for emacs-orgmode@gnu.org; Sat, 19 Mar 2022 08:12:14 -0400 Received: from [2607:f8b0:4864:20::529] (port=41651 helo=mail-pg1-x529.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nVXwL-0006b9-EW for emacs-orgmode@gnu.org; Sat, 19 Mar 2022 08:12:14 -0400 Received: by mail-pg1-x529.google.com with SMTP id o26so6946279pgb.8 for ; Sat, 19 Mar 2022 05:12:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=DLZXUIDg6jzRkKNoVIGD9ZWAFM08DGBFkMTucY6jVX4=; b=NC/7LU73w1YpXKReKGPmqcWxkpTgfymnaK4Dk9MsX5uymS0gnx8aAKOO1za+XF1WDe 3+Fu9fIkKivVl5xjH6c21nyzztCaRVe4E7N8viO9wHQkKnnrt+zE49sfPL074NvfvWbI j3S5i6mpEbL9kxzQ//pqzfY6NMY5IX532jPYvzqaaFiB9EaPNKLLjUE9M4daKqIpYNC/ n2v+CCSjsDhquto8wwY4sysXgwRLoM4JDerBfnsVjpNp3eubEjLSc7ZtPWeqbD3eOrYm ICpL2R9qFqbr9T2K2ro0PJs8sou3zPDbcphS1e0GDXDNNdmxlGqCdSjkHphaO1HbJz1S yHLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=DLZXUIDg6jzRkKNoVIGD9ZWAFM08DGBFkMTucY6jVX4=; b=1Wkt1PGif9hPiXuPPgxey0Hklu+LSdQIKIRn+UjEK1a+OXMvnoMVEsHN9u+hzI2l27 BHsivK2SpSkt8f+yZOCPE3xiE91pGIsXHCZj8SGtiMnbp9nTzjgLA11MpNeBEkRsRB2n zs9DfTMFnYnNrYqsYI/PfAqbuCAIBFt3ddBTxK2aaZx/CqMTb7oyOxi1UEcw1k7FttJC 8C/N++upnRisLMq5Wl4JPKb5VDaEiwasnHSV+MOAGAM4ZaxjMvzjF81NyWRPTD24cOjv G3UNMS9xlPu7YEHQLlrn8jOOcxzdZWLQ2cJk9i0oPIOPaVTnqA00QH9xa96NnfpQXlAs zaEw== X-Gm-Message-State: AOAM531h84SAooWH3KfJucGlaUZ55uoDqoa/Au8LnSDxpkP1ibWVzrZq G2cGB4BlWqLeDnea6r9nzRU= X-Google-Smtp-Source: ABdhPJy1N19r5HYNCAEPeaj9lbX+5Ty7k8lhNJ2orjKaWsgsyq1JNlfheCt7jfu+iLiVnXd1tmiAEw== X-Received: by 2002:a63:303:0:b0:381:113f:c5d7 with SMTP id 3-20020a630303000000b00381113fc5d7mr11305993pgd.368.1647691931860; Sat, 19 Mar 2022 05:12:11 -0700 (PDT) Received: from localhost ([45.128.72.3]) by smtp.gmail.com with ESMTPSA id i128-20020a639d86000000b00381f29d87aasm8741722pgd.92.2022.03.19.05.12.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Mar 2022 05:12:11 -0700 (PDT) From: Ihor Radchenko To: Jamie Matthews Subject: Re: [PATCH] Re: [BUG] org-cite: 10 second hang opening a ~4k org file with 10MB bibtex library In-Reply-To: References: <87pmmifirh.fsf@localhost> <87fsnefg8b.fsf@localhost> <87cziifeo4.fsf@localhost> <87a6dmfd89.fsf@localhost> <877d8qf9k8.fsf@localhost> Date: Sat, 19 Mar 2022 20:12:39 +0800 Message-ID: <8735jef8eg.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::529 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::529; envelope-from=yantar92@gmail.com; helo=mail-pg1-x529.google.com X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "emacs-orgmode@gnu.org" , Nicolas Goaziou Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1647691988; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=DLZXUIDg6jzRkKNoVIGD9ZWAFM08DGBFkMTucY6jVX4=; b=BgqfHuk7KpN9p6TNJCwM9inktTc1xDgpP7zCGAUWH4n0IbKcYO/9Jm2d9uNzRfLRg9m7ya eikoqHGtqe+8LuVKJbdaWtCkv/b7IKIyoOVXxdc4mANWigMlSlGVKxqAZ3v3yp2XCfh0sj BXYIscQJ3UOfXpYXf/nstFSIjp0RrO2XMVLjgYNnUpa3NW9Pyls4xhhlGBFE9y6oV/xrff Z8xFUS1qDtdqKuEEC+I+h6zGwbodV0MK10jO3CvV7xAJxIIw8jO54kDkzMZ9KLBkkZidl5 99pmrg3tHd2FwbSLkqu5iRp1RX3M802kg7qgGVWRrGcxIFkwsFkUR7Iv+JC0Lg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647691988; a=rsa-sha256; cv=none; b=gvlaynex5MM6DPV2UpKN119gZzbtXOgaSF69uuihamtPx42wrXUTw1aNK3C7BO/2V/ra4t MElromEvNXTGLBcl8potWDTiODzIiFZ8tJakWQFDokHly2lve9NIAsicfILUgxPgKjzEqT KF6ZLxeXTle+KnfawULLLUSDoz5b6yTyufvYhRGRyR8Ivyg7H+If6QJM2QWEtxdDkz0B9U r0A0cw+vr730XIBoQTXDlWA8vCld4tc1GQvcTdxpDr3r6uRAtXQqibId6gdzbRjbNG2Z1n Lk4Tqd/kqYWkPu1fwLAg9Uk9VBH3l+1VnjY69cLzEdwuMyway1J+79WJMxAwqg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="NC/7LU73"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.26 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="NC/7LU73"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0A4568C3B X-Spam-Score: 5.26 X-Migadu-Scanner: scn0.migadu.com X-TUID: Mc4bl1si7m4e Jamie Matthews writes: > Hmm, this doesn't fix what I'm seeing - still hang on first load and quicker after killing and finding again. Very possible there's something else obvious I'm missing though, I'm very much an emacs 'end user'! This is strange. I would then try to run the profiler and look at the results. The very first run might be somewhat slow because org-cite still needs to parse the whole bibliography at the very beginning. But it should be still faster than 10 seconds you observed earlier. Best, Ihor