From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id qLutNMG25WR+GwAASxT56A (envelope-from ) for ; Wed, 23 Aug 2023 09:35:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SKOKNMG25WRcEgEAauVa8A (envelope-from ) for ; Wed, 23 Aug 2023 09:35:29 +0200 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 1DE8339B9A for ; Wed, 23 Aug 2023 09:35:29 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=TyE8yKJs; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692776129; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=baJQ4eVm9ACultoKpJ+X3G5I+nwmUCbdXntUKdsf8yU=; b=VLEz0Ip0hC9k95wRNu1Se9OovhWUoPKYi2X2jKBITpGPIPtnZvWoTSG+O17hiAlqhQZcJD Wq/VtoEIu8GYjWTGAKuDNOo6rEbykjyLwjZLSH76B5nlu1UK1m2p+w0b0JfBz1kAciSUI7 lJ7dPDO6F9p/fX1Rcj1Y5FVnkT0w+y4GiysZpTLc2JAlZlSUHWshT04Bey/fRWsYL8108H j0VWDbb+ads0Zuqv5btOjP6zZec6TjlaASfqdToUp+i8MUr67SRaF47CXtffHRu6pCBjaY fUQv6C1k+fZsxPJVFpEImJDpwcvwgmcae4u38u9aUQjwqNmxDv7Vh/2F6873hw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=TyE8yKJs; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692776129; a=rsa-sha256; cv=none; b=I3VZ3muEn1j3YWYieY160t1xTaOVAndPF0SSyknLysQtWQa21EhG+DQcB6n8i+18uf5YEh skfSa1XkFjQNHwCim3lcOa9aaHz9N/HjZrxBTYRH5wbPi4Ex1t+v4bR2o7GK/US9jyazh7 w+Zvm4KtyG6rW0NVeZo7eV5wKcAnwz6ninaij7ZbFsldct7GPtercsaNDemX5mkN27phJE 8akyEtLi8HXKZeV5j6ZE3GX0DwEUJ9msY3xBnh1M6RoBVRmPDC9G1CVosC6S9GYsKtbG4N 54dlb+hQwvQp8E8h0oiLlrayNqk2/GQxTz9Vb6zlwO4d3v5pgTD3otKmneKfDw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYiO9-0007mx-Ny; Wed, 23 Aug 2023 03:34:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qYiO7-0007mL-O4 for emacs-orgmode@gnu.org; Wed, 23 Aug 2023 03:34:47 -0400 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qYiO5-0000QM-Uo for emacs-orgmode@gnu.org; Wed, 23 Aug 2023 03:34:47 -0400 Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-4ff93a7f230so6076307e87.1 for ; Wed, 23 Aug 2023 00:34:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692776083; x=1693380883; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=baJQ4eVm9ACultoKpJ+X3G5I+nwmUCbdXntUKdsf8yU=; b=TyE8yKJsWng0d8qdzhvFKzhiF9biF3PnoIdk3uX8BaYbiYzkr2sYRdkI051p3dbtcs GSeQ2/J2u1GrH2ZdboB2nIS8ZZ6SquCOzPf9i/5A8++e8JcUaqksn/UcS0I2BlrTiFxG uu1OX3GGh6uf3ZLQgliWYRcQDH9p09XQAZx1i2Dx+/rZp8K371wsNRS75jZnn/MPD+9F BmTg0DjYDsXsVlzPZ7184YnaA4UZWapdZkuuoQwyZcWdwUCKeN420JBx53y9EP/BWOTz Gbn51epm6KzHQcYJjgT53ebfLgTqjF3l4HVBRWhG+KCAKjxJ/da5+na2fFyJn3Zz95M4 qkjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692776083; x=1693380883; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=baJQ4eVm9ACultoKpJ+X3G5I+nwmUCbdXntUKdsf8yU=; b=WaMvcqU3dVQyPeN3QxgSGCD9bVHw81iJRIi4SHWzWFndHnfn1KQVh4Iz6ndwu8xhYl WD/5vMsLZDHIIx2yatPMzJM/E0bmgjzt0haZgkI4Js/I0sOvRr4msTQjQt+j6HsGUDyD rukMa1TWWFd5AllQPeCx4LYL/0GoeE2Qjy1dUkQE0vAiWRPx9ynOPqu/As6pV5QnE/2d Zzqa/a6Oyl8B1hz7xaNasdZxev8/DUHXrqr5vx3GSHEpwMQMlj6EJe3EXFn+Po13aeN8 8Zt8YryUrDuGbRktsvx3PzgKrgSuaEN+bHIIFb5myLrOeOXl7u+wmKBCq2u2JFl0u6qF 56gg== X-Gm-Message-State: AOJu0YxZKuRRadbEi3A+u78YzJSBnxUjeMfYiRLD4zRiG7EJA2AKFzGU 7DIlaG/9K6giZMoIbqAuhl3Cdo/8NommZX3u5hytMzWuBBg= X-Google-Smtp-Source: AGHT+IHKAZsKssvlpfxLRpQwKVzT4eVeoobC2exgmlP10GCJgnNUE8JGKLBhKY+PHvqN6bWTevIuXpR1W8lTqm7RVh0= X-Received: by 2002:ac2:4c4d:0:b0:4f8:6e1a:f3ac with SMTP id o13-20020ac24c4d000000b004f86e1af3acmr4716058lfk.28.1692776082542; Wed, 23 Aug 2023 00:34:42 -0700 (PDT) MIME-Version: 1.0 From: Allen Li Date: Wed, 23 Aug 2023 00:34:31 -0700 Message-ID: Subject: [PATCH] Raise gc-cons-threshold for org-element-cache-map To: Org Mode List Content-Type: multipart/mixed; boundary="00000000000015ae97060392258d" Received-SPF: pass client-ip=2a00:1450:4864:20::135; envelope-from=vianchielfaura@gmail.com; helo=mail-lf1-x135.google.com 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: 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx2.migadu.com X-Migadu-Spam-Score: -8.48 X-Spam-Score: -8.48 X-Migadu-Queue-Id: 1DE8339B9A X-TUID: HgFWkQZaeUIX --00000000000015ae97060392258d Content-Type: text/plain; charset="UTF-8" Attached patch, I think it's self-explanatory so the commit message is reproduced here: org-element: Raise gc-cons-threshold for org-element-cache-map This garbage collects many times when calling org-get-buffer-tags (such as during tag completion) in a large file with many tags. Raise gc-cons-threshold as this may affect other callers in large files. Note that org-element-parse-buffer also raises gc-cons-threshold as a precedent. This has no effect on most callers and increases performance for extreme cases. --00000000000015ae97060392258d Content-Type: text/x-patch; charset="US-ASCII"; name="0001-org-element-Raise-gc-cons-threshold-for-org-element-.patch" Content-Disposition: attachment; filename="0001-org-element-Raise-gc-cons-threshold-for-org-element-.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_llnf35f60 RnJvbSAwMWUwNmQ5MGYyN2I4MjA0ZTY5NTA4MzUxYjdmY2E5YzAzZTdhZjMyIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBBbGxlbiBMaSA8ZGFya2ZlbGluZUBmZWxlc2F0cmEubW9lPgpE YXRlOiBXZWQsIDIzIEF1ZyAyMDIzIDAwOjIyOjA2IC0wNzAwClN1YmplY3Q6IFtQQVRDSF0gb3Jn LWVsZW1lbnQ6IFJhaXNlIGdjLWNvbnMtdGhyZXNob2xkIGZvcgogb3JnLWVsZW1lbnQtY2FjaGUt bWFwCgpUaGlzIGdhcmJhZ2UgY29sbGVjdHMgbWFueSB0aW1lcyB3aGVuIGNhbGxpbmcKb3JnLWdl dC1idWZmZXItdGFncyAoc3VjaCBhcyBkdXJpbmcgdGFnIGNvbXBsZXRpb24pIGluIGEgbGFyZ2Ug ZmlsZQp3aXRoIG1hbnkgdGFncy4gIFJhaXNlIGdjLWNvbnMtdGhyZ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