From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gG5hLRcPcGFYEwAAgWs5BA (envelope-from ) for ; Wed, 20 Oct 2021 14:44:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id wKoMKRcPcGFgTgAAB5/wlQ (envelope-from ) for ; Wed, 20 Oct 2021 12:44:07 +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 293D91A8D9 for ; Wed, 20 Oct 2021 14:44:07 +0200 (CEST) Received: from localhost ([::1]:56832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdAww-00070r-6H for larch@yhetil.org; Wed, 20 Oct 2021 08:44:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdAvp-00070Q-UJ for emacs-orgmode@gnu.org; Wed, 20 Oct 2021 08:42:58 -0400 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]:45666) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mdAvo-0001y4-9y for emacs-orgmode@gnu.org; Wed, 20 Oct 2021 08:42:57 -0400 Received: by mail-ed1-x536.google.com with SMTP id r18so26016418edv.12 for ; Wed, 20 Oct 2021 05:42:55 -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:content-transfer-encoding; bh=FebMvze2NXBbE5RMuVo6vk5WytM0vXh5u5ieOodzkQ8=; b=XsVtaXyFI9d5rLt7rm55Vldzp3Db9w9CqIzPUJXo9PBcO/56sw00O/zjGF87pgGeQc TZQCr+/R+bEHEANJIdnKnuiiaAFWAVO2jb9Rn9T96cX/j5UwyXJsXCYGiFvU5+mXZncn 7BokJpoRxXdBKtCZ/KJYm0zTOZYPj1NPzO9aq00jgduKqpJJ3SqMiYFi1WwsgCjpInAN HP6ZfL60Orp0ab5Asxl8SZ27RtNFzFSzphqadG1iFZlvHcak5HxExTC4kQWULZsCxvo+ WaueRlEfvdH9Ow3qNUpf+UKL8PjtkICAmfgyxjcX9V71RxFbBNiGNLVXknu0682MMVC8 Sxmg== 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:content-transfer-encoding; bh=FebMvze2NXBbE5RMuVo6vk5WytM0vXh5u5ieOodzkQ8=; b=pqaY4gwnsZRQ8TbZxvrUhJW2rI2tgH6yzfGElN+dePoKutHm9IK4aYDYAOviLzdt/U TVL2TAWOaPdgbO6ADx7ZFeG2UOhaoSTDC407WPfsHDRAHHCAH9Ff0cqg4txXqfVUp5Fd vDqAKi+4VxRYYQFL9TUAUpxLxy0Hc4ANAaYW5YcHP6BvxKJulzvCtaBmP81YeQ/MkN+2 zZ1qm/q57FtTf8H4EbQo2zz+vRwrULrez/OhOTPn7vvWA7f3tjvNkSCYTeqlE41rxTyM NIOQEeUtInkRoF5oAEspkrHzvOQ5j/BT3/vfYoHSLvjy430LENUM6qColzmzyUQdYc0d BePg== X-Gm-Message-State: AOAM533VXBDNxzktpy0JH0iEK9l2pV4Z3bsu2HRPPrWdravf1UeaiCfU hzEfN/ZLyn7SOZ+T9wghlSE= X-Google-Smtp-Source: ABdhPJw7ozRWfY89EAelsX6jmIV53+Q6z1YMAJ9s5G+GXCPKo+zhKSTcgOYQQVNCOVm2P4dL53qqqw== X-Received: by 2002:a05:6402:5244:: with SMTP id t4mr62120544edd.14.1634733767505; Wed, 20 Oct 2021 05:42:47 -0700 (PDT) Received: from localhost ([141.105.67.194]) by smtp.gmail.com with ESMTPSA id d18sm1172187ejo.80.2021.10.20.05.42.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Oct 2021 05:42:47 -0700 (PDT) From: Ihor Radchenko To: Colin Baxter =?utf-8?Q?=F0=9F=98=BA?= Subject: Re: org-persist In-Reply-To: <87ee8fncmw.fsf@yandex.com> References: <87o87kb64s.fsf@yandex.com> <87tuhcfc3n.fsf@localhost> <87czo0nqw4.fsf@yandex.com> <87o87kchi2.fsf@localhost> <8735owawla.fsf@yandex.com> <87lf2oc9sv.fsf@localhost> <87ee8fncmw.fsf@yandex.com> Date: Wed, 20 Oct 2021 20:44:08 +0800 Message-ID: <87fssvdfxj.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::536; envelope-from=yantar92@gmail.com; helo=mail-ed1-x536.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634733847; 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=FebMvze2NXBbE5RMuVo6vk5WytM0vXh5u5ieOodzkQ8=; b=QEQKs5CDavSJlvt3xsvr+jiAhxUqBu6b5AMSEVpiE1bzK6W5ODITksH/a9BI4oW5Fhr/ss EgUOIM+HIZE7ryNwagbH4pD0XHVEpZpHbQ51i9j3WPYu/kxW+hRjPRcX8wlXTjeVzGwe+p 609YNotmaAnXLHlkTjBSYTv7tdtpBuTrYQcX9wqHtt7oFkFyLpN3X65t+87nV5EQ7eNNDL BhouehsoCCckHoe1MokHDwa3VkzX87iMqQrnNVU/V2/i/uplfrBLlam5RUbPEQIZqK6OGN keMuXcnDTT5GJR2aL1lNN0AQalDqfWGOVhwZyOHA53c/dgb2/XEglIuaDplnVg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634733847; a=rsa-sha256; cv=none; b=smMHa+A9Ja0rJBC4I+X3QcqmFT0EoVgGVPosCGD71+KI9wyQ2veMPG7Z+UswaLaw6t3eJl 0Ds2MsChLz1i7kK66ccZOWiWXtVYBq6K1ru1ibYfm16TAT09QmFqpT2O/h5QZOEq9qm5Yl f04Gm1Cy1Bso3OXDxgSWLw6Gwvrcy0PtxxDMvz0YZg9mIbMPFLgVx6PCqXeTX/NMGU7rOO iEtV3Rcnt3eW1MhGNQ/ip0IPC+MjKp5wVNvwZPmh+nX7pJgnYFJo8iZTEEL5QTghYWDJFX AuLvNsC8lFrqVfNJC1+zw8BJ2cwJsOCA/Luw7f/dKg6Nq1LTTBrBsgq7+i+bxw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=XsVtaXyF; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.63 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=XsVtaXyF; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 293D91A8D9 X-Spam-Score: -2.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: Wrn46Vl5Hj8A Colin Baxter =F0=9F=98=BA writes: > Ok, thanks - that works - I used ~/.emacs.d/org-persist/. It might be > worth mentioning that the user should not create the > org-persist-directory himself. I did this originally (mkdir > ~/.emacs.d/org-persist , touch ~/.emacs.d/org-persist/index ) > and got various parsing error messages. Everything worked fine after I > deleted my own handiwork and left the directory creation to org-persist. Thanks for reporting! I did not consider corrupted index file. Fixed now. > I had originally set org-element-use-cache to nil because I remember > reading somewhere that the nil setting would help prevent emacs from > hanging in org-mode. The cache code has been refactored. I tried my best to fix all the bugs causing the hangs and I am not seeing hangs anymore. That's why I took a risk to enable cache by default on main. > I'll certainly begin using org-persist and see what happens. Thanks! The new cache makes agenda/sparse tree searches at least several times faster (I even got >10x on some agendas). But we need more testing. Best, Ihor