From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UNseJKU5NmK5XgAAgWs5BA (envelope-from ) for ; Sat, 19 Mar 2022 21:14:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6HjiIKU5NmJgEAEAauVa8A (envelope-from ) for ; Sat, 19 Mar 2022 21:14:29 +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 0C2D1BAE4 for ; Sat, 19 Mar 2022 21:14:29 +0100 (CET) Received: from localhost ([::1]:52134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVfT1-0000AE-SD for larch@yhetil.org; Sat, 19 Mar 2022 16:14:27 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60796) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVfSH-00009m-0d for emacs-orgmode@gnu.org; Sat, 19 Mar 2022 16:13:41 -0400 Received: from knopi.disroot.org ([178.21.23.139]:33930) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVfSF-0003cI-0q for emacs-orgmode@gnu.org; Sat, 19 Mar 2022 16:13:40 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 3E70C40089; Sat, 19 Mar 2022 21:13:36 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id itn-K1xTIWjk; Sat, 19 Mar 2022 21:13:35 +0100 (CET) Date: Sat, 19 Mar 2022 21:13:28 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1647720814; bh=BvXep+uEblnLA9sfbMvLwre6um3cS02FbFDyZphEd9I=; h=Date:From:Subject:To:Cc:In-Reply-To:References; b=gKQ9S45umq4AQ9x0AYJ9p30Tcwhy3vbK3DZ07wVbBGQlDcNdC/bsUBJaCQSRopSD7 kxLgotE9LNGt5gDKnVl//5SltOw1prDrnSOSeQ6Y2qep1NjzlmVXY7BndIyH+CG7xI eD3fnRV+ig9wdXUZDw/yT5zJQWWZleVQ7FJYIWjhbyYQTkJktUZyb1Upf52KZPT5Xa r5bLfIILXc9lms6rMrkcHmAccaX/2PWE4NVuc67z7rmBBku1ww/7ktqKhnHCRsfPg4 VxO9LVhKu7wsVTLSb25wa84cIf9JgYcormdQILRPOZU67lNUnHK4f/2l9R23HWLjvt NV4534gXKaRNQ== From: psychosis Subject: Re: [PATCH] Re: [BUG] org-cite: 10 second hang opening a ~4k org file with 10MB bibtex library To: Ihor Radchenko Cc: Jamie Matthews , emacs-orgmode@gnu.org, Nicolas Goaziou Message-Id: In-Reply-To: <8735jef8eg.fsf@localhost> References: <87pmmifirh.fsf@localhost> <87fsnefg8b.fsf@localhost> <87cziifeo4.fsf@localhost> <87a6dmfd89.fsf@localhost> <877d8qf9k8.fsf@localhost> <8735jef8eg.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-13; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=178.21.23.139; envelope-from=psychosis@disroot.org; helo=knopi.disroot.org 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , 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=1647720869; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=PItrHEgu6iWCZptPmeoCeCknFbVxOo0nFsFetEOTNPw=; b=OdMQO1Wgv1liUQehNHfthU5cFF44ANi+LBhaFnM+XS1vRKUTdKL4wbm1qhb9EPwEAF9WJ2 qvQXjBoDaSRfFrXvHuBcEVCrYU7FK/xjX9rC3jERF0qZhmE2Fp20YwvxrVwozYrT0URbO+ WZ1z5Hi3OnnrvJK5hffN336bd2717vdVAwJvd8h3xoze1iGixcheiL5dzNS1ZaO/m8BUVs z5QYYqbDU+X8QraUIPjs8M8GdFNzwaQgHhUiHUEqQ8Mx3KPx6XHzJKqa0EzxUD40WDtcuo B98kW9yLMlDd0rLRBcRtmJ7X10o6017wsNS4amO8/6Fp5NvCHIZwLr9CGBk4Iw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647720869; a=rsa-sha256; cv=none; b=Xz6pmFs8m41AJjBDwc2xMyP34ujU7aCC+RprlNHImjvmF6n3FUkXZK4M/StFyDVTi8qrv7 pO3bNsvW754imLxmIl10H85qz/lVP7E+14EcAqFwvlBcOB5Y7Qr2D6GQQ8PvhM42HA3W6t URCrWOkcVUW8uYEYQL15pW3sSXLXEBHov1eOPtcKQTCWMj0bG//HE2yXWEAidRxTCwE5RT 9y7LI9yBYCbB7HYkJLOQzNUpZc7+zetiYo8BhhX+v1oJb4fsPT08YjFoNRSRF2LJT3u8cH C8aQa6LPutaiSg7d7i7h1OeaAGq59dM1xDDZw6h06pAkIOIwQsasnWacrPEOTw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=gKQ9S45u; dmarc=pass (policy=quarantine) header.from=disroot.org; 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.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=gKQ9S45u; dmarc=pass (policy=quarantine) header.from=disroot.org; 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: 0C2D1BAE4 X-Spam-Score: -5.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: h1UT6L2DHVqN Hello, I have a related problem (see=20 https://list.orgmode.org/77KM6R.3BGD0Z3Z4PHF1@disroot.org/ for=20 reference) and Ihor=FFs patch reduced the initial load time of my=20 biblatex bibliography file from almost ten minutes to about 10 to 20=20 seconds. For me the changed cite-key turns only red if I restart Emacs. Thanks for the patch! Please let me know, if I can provide information=20 for further improvement. Regards Paul On Sa, M=E4r 19 2022 at 20:12:39 +0800, Ihor Radchenko=20 wrote: > Jamie Matthews writes: >=20 >> Hmm, this doesn't fix what I'm seeing - still hang on first load=20 >> and quicker after killing and finding again. Very possible there's=20 >> something else obvious I'm missing though, I'm very much an emacs=20 >> 'end user'! >=20 > 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. >=20 > Best, > Ihor >=20