From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id GBZmEThmt2Z3ZwAAe85BDQ:P1 (envelope-from ) for ; Sat, 10 Aug 2024 13:08:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id GBZmEThmt2Z3ZwAAe85BDQ (envelope-from ) for ; Sat, 10 Aug 2024 15:08:08 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Yu50APZY; 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=1723295288; 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=hZGN30gWh6eHPZ6Ab1CaXSOUFuyG7SEfUFCR0kY3s+E=; b=WJ6JhXckhjujs+06Bax/BAMku7pritV4xhFob4OA9dRWitEdlFyYPn5KjVnXFNinWZhlky 62XWjvh7s1Oo7XW9sy7Cyl72t3g3xtLIFgDUvgov8EzzqyiNc/GuMS79u2cRkidhVFtlW4 Ld3Og9VWLOrlHEV8SjXTLDra607JdxekdHu7nexCzfVCNGX//JZxJBZmpGx1dF+fiZXABg iSRp+utVsOAeDegS4AaDVEzTf2ceF+JwxaRYxuPYgvD+zALvjh279SgeHHpWB3lFiv9Gn1 6QLXgXqDnGtgQl+/N6f4Bv9spAPGFHBANlZichKs5lwwJwRoob1q1lZfpek36g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Yu50APZY; 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=1723295288; a=rsa-sha256; cv=none; b=QGF7W1++qraGzjPw2r2M+raoROri7vOY4eWI+bbxtIDTkdiTKRlswhMAIIaCKkuVek9+Li dsmND3U/94L4IPVz6vUKj1fOhpfh2+0sljtde52hy5ExqCOQf4SIgltEaBWyI+xYlroi/8 7Gwkm0v5zSXdvWIYCZvBGOCxhhcFpHLuYAbCe/1LMcoG4OvTPZBkiPsmb/Vj+4C+ryMn9V fokrpr2M8rjrgK6q80G37wf4AxUM2IzggkvlrrHHZDZF+rW09cu8jIUlQMVMjxsHrcQJeb Z/yCPRJ2ltSxUUfDWeZKT08u2dQ+0yChmZAqZeAkkzBXc0SmpaNtVuMpVVCPSg== 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 1CFAA25B69 for ; Sat, 10 Aug 2024 15:08:08 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1scloU-0004zX-JP; Sat, 10 Aug 2024 09:07:18 -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 1scloS-0004zO-Bn for emacs-orgmode@gnu.org; Sat, 10 Aug 2024 09:07:17 -0400 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1scloP-000295-7V for emacs-orgmode@gnu.org; Sat, 10 Aug 2024 09:07:15 -0400 Received: by mail-pl1-x643.google.com with SMTP id d9443c01a7336-1fc587361b6so26247935ad.2 for ; Sat, 10 Aug 2024 06:07:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723295231; x=1723900031; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:references :message-id:date:in-reply-to:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=hZGN30gWh6eHPZ6Ab1CaXSOUFuyG7SEfUFCR0kY3s+E=; b=Yu50APZYa22woIZU3/4MHiRfEnSx2s0LiO0cx6Hao3jtSYOP75xrgpauuDouiblDqh zVndgOjNoK9CGJnG6HVPOraRhF4Ek73gXSm/fI2kQKRNlUb1HpwM21co2/atonKTl0w8 4zD9MYnjtggd7c2rH5b3GLwQyMiVmkBRZbJ//l4c4rXFt7dAD4p82oUhfAH46w2pYDZA 0ES+d/Z0RDLmu3/b4YIFGosg7YmDyEd4qapq9uTOcrusytOsYKhNfGobh7XiYg5EvEQB 1k8uDpRo1i0zvTbEe3nRL58Jz34yt0t2uZEzrE6/NovkKb1uNzCVTfVddk7l204wROnE Dd2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723295231; x=1723900031; h=content-transfer-encoding:mime-version:user-agent:references :message-id:date:in-reply-to:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=hZGN30gWh6eHPZ6Ab1CaXSOUFuyG7SEfUFCR0kY3s+E=; b=V73CcrM19XUr6HpUZU0yTMYZUAp72Woj3aJ68YKPWHX76VdlseeaLocp6OYAIokwyn yKsh/ZTNkJkG9RGg+9o9KZiI4HOBKj+AVdiJoOMwqGLhLmIJj22qV8Dawl7nZp5jn8Nt 1XEmKgyLfRlGnlgOfy13IR/Adfybtmd9dHsj2VN1d9aK84cr0dSPhWhbOFqKzm9ExeeO 5+FKpHk5KI4o+z1VziLh6CjiBudCENpjh9dE+bVivhJPc3OJwvVmDVXN3MYna2ZPDvim Yb/DzrmI6WbHKWpc3IZI/PtrAYpOWbAtmECw3C9M6CgRQ3/I2KXBhfciqjkCCL8jRlba YgGQ== X-Gm-Message-State: AOJu0Yz6Dph8e/aavGHkdGfv69h62LLoExvVPZrq08Zbfdf3Ni1TYoNc TLqSM2Izj3UpEruXkPM3zuBQLCovU0jkYhYBivSL3FhwbPz6FZQjKgdwgiX3 X-Google-Smtp-Source: AGHT+IEgQ63HD9cvs978mttBS6lsR4yNV7/jyr07/h3r6Mx1W3doCAocKDLR4YlZHIGDDw4DOtu9Qw== X-Received: by 2002:a17:902:da8f:b0:1fc:327a:1f48 with SMTP id d9443c01a7336-200ae4dd986mr37522395ad.12.1723295231286; Sat, 10 Aug 2024 06:07:11 -0700 (PDT) Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-200bba44804sm11356545ad.242.2024.08.10.06.07.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Aug 2024 06:07:10 -0700 (PDT) From: Visuwesh To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-persist-write-all is slow because of use of pp [9.8-pre (release_9.7.8-713-g62cbac @ /home/viz/lib/emacs/straight/build/org/)] In-Reply-To: <87ttfs35mw.fsf@localhost> (Ihor Radchenko's message of "Sat, 10 Aug 2024 12:48:55 +0000") Date: Sat, 10 Aug 2024 18:37:01 +0530 Message-ID: <87sevcjzm2.fsf@gmail.com> References: <87r0axvu7y.fsf@gmail.com> <87ttfs35mw.fsf@localhost> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::643; envelope-from=visuweshm@gmail.com; helo=mail-pl1-x643.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-Spam-Score: -9.78 X-Migadu-Queue-Id: 1CFAA25B69 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -9.78 X-TUID: WfGj3syyxgI2 [=E0=AE=9A=E0=AE=A9=E0=AE=BF =E0=AE=86=E0=AE=95=E0=AE=B8=E0=AF=8D=E0=AE=9F= =E0=AF=8D 10, 2024] Ihor Radchenko wrote: > Visuwesh writes: > >> I am using the async LaTeX preview branch and org-persist-write-all >> takes a lot of time to finish executing due to the use of pp when saving >> the index file. Changing org-persist-write:index to not pass a non-nil >> PP argument to org-persist--write-elisp-file changes the execution time >> of org-persist-write-all from 62 secs to just 8 secs. For reference, >> >> (length org-persist--index) ;; =E2=87=92 1504 >> >> I have attached the profiler report for org-persist--index of much >> smaller length but if required I can reproduce a report for the full one >> too. > > So much for the idea of readable index file. It is unfortunate, indeed, since the pp version of the file is really handy when looking into org-persist issues. Though, I must mention that the slowness reported in OP is compounded by my fairly aggressive CPU governor settings (in hopes of improving battery life). > Fixed, on bugfix. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3Df935145= 6e7 Thanks for the quick fix!