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 mHuBAU5AiWbj2AAAe85BDQ:P1 (envelope-from ) for ; Sat, 06 Jul 2024 13:02:06 +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 mHuBAU5AiWbj2AAAe85BDQ (envelope-from ) for ; Sat, 06 Jul 2024 15:02:06 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=IxtwLTTY; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1720270925; 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=Fdt3HBd4S6NDUV5B+52QzNFNqfXJyk+bqCefDnDaU5Q=; b=JxdUkbEGyjl7RjvZxII4OmAGb94rd+YzV0C4+QtgR3coh3AZvVnqGK0ACKMGJjKYcCmbsL hVBzKPU955HDeifj7525nZLfRHkKjvMKuq+zXlF52h0HOqCM/cMFfbbQFRgSw3DlW/ndeQ e2bPLK1q21rzsxjCpK486VJJadMvUf76rfjAWFtuTnXalezHOdPw4IFJIoNuGh7iHKnQ2J 0SHMbtoa/y8uRST5oZFAoVrf5AFL1qK12IP974M7dUX00QqtcH2KNiwOK/rd2xUyoI2xCM 1r/wxMCLZPUGGwe/4jcEJ3a7i94vHBbIjai92glJC78ECYdrrM807HiFCZtqmg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=IxtwLTTY; 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=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720270925; a=rsa-sha256; cv=none; b=SsIKCXGnjbGrVRke0dYC4wyrZq/9w5dZw4ylwW1faoNWeve40HtP8Mr4vuklnZxTjKK7qT 3/JSbALr8Hb8h7zMhGUmb65+cxqseG+qbunUDzSACkfKUVqEC0L2XkAJqCqaD+jLS6F/Cr hHS3svdZDO6vMK5KRpIVjmzmzTo6/ln/ybQz3tMk5kmy5H2plZxAGstecGAm12R70gRmwg k4xGJ67Gmp/qBwHSAT+S+k4NhMPtSeThug6tDcbeMUVMuIXsN4nF/IA0y2jHgLrYHICsYg 7j7WVXTNt4Ht/iNaXPmehSPVvdt1FW0ZO3aB1Nik+tfSkEwUvWTFl5+JZIm2CA== 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 8CF4C76673 for ; Sat, 6 Jul 2024 15:02:05 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQ52Q-00053b-LG; Sat, 06 Jul 2024 09:01:14 -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 1sQ52J-000538-02 for emacs-orgmode@gnu.org; Sat, 06 Jul 2024 09:01:12 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sQ52G-0001WG-R8 for emacs-orgmode@gnu.org; Sat, 06 Jul 2024 09:01:06 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 0CC1B240101 for ; Sat, 6 Jul 2024 15:01:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1720270862; bh=fotom2TelvANq2O2JPJof8unQIKMy2eYU6aBitpCwpg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=IxtwLTTYRHC4Xgl0sO39UQnSH9tuUPfKw+Z54VAScJkCK4bBODPgLcgdbQ2AtJhTj r9uIHos2RC3KX2fFSOtLUw8ARUcMkRE6dfG4KBCu6hU4QccB/1MPXm3zqd1g0ZGsa8 QRFDhLu8s+aWzEtcJi9xi2sYNv2A4VjZCXEf4UNe11VdQB1UR80pxPQG7vCl2fCUuA jo6WVa6ZnZDEUXe9idCqlQ/Eif4f37frbjz9rZ+wEMY4zYmPy1CvvZT6xhMlADXWM3 zhznmffRgD3wXJu2gpmWXf1k+fDcpQAJBaZUHQPFf+BQtVDmwj+4FL8R3XNAl1nDys Kfqz4hMiUJBnw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WGVqx10Blz9rxG; Sat, 6 Jul 2024 15:01:01 +0200 (CEST) From: Ihor Radchenko To: Daniel Clemente Cc: Eli Zaretskii , emacs-orgmode@gnu.org Subject: Re: org-encrypt-entries is slow (was: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options)) In-Reply-To: References: <86ed921oxu.fsf@gnu.org> <874j9vllbp.fsf@localhost> <87o781t676.fsf@localhost> <874j9qs0wh.fsf@localhost> <87ed8mtyp0.fsf@localhost> <87msn7kffy.fsf@localhost> <87o77my9mp.fsf@localhost> <87y16j4nbe.fsf@localhost> Date: Sat, 06 Jul 2024 13:02:37 +0000 Message-ID: <87o77ak70y.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.61 X-Migadu-Queue-Id: 8CF4C76673 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -9.61 X-TUID: aXr/52Mlh5l8 Daniel Clemente writes: >> May you try >> https://git.sr.ht/~yantar92/org-mode/log/feature/org-crypt-refactor bran= ch? >> Is encryption speed satisfactory then? > > With that code I see something strange: I opened a file which had > encrypted :crypt: sections (never unencrypted), and after adding a > space somewhere else and saving, it asked me for an encryption > password. It shouldn't, since all sections are encrypted. > I also see =E2=80=9Eorg-crypt: Re-encrypting all decrypted entries due to > auto-save=E2=80=9C asking me for the encryption password. Note that it may be asking about _different_ buffers, not just current. That's because auto-save-mode saves all the buffers, not just current :) > But I tried removing all :crypt: tags (I renamed them to something > else), and saving a large file seems as slow as before. A few seconds > (often 5 seconds; sometimes it's just 2 or 3; this was the case before > too). Here's when it's 5, for 1 save: I think I fixed this now. May you try the latest version of the same branch? > I also see new problems (which would take me a long time to explain > since I don't understand the code or the settings), where: > - Org asks me for an encryption password even if there are no :crypt: > tags. I just changed the only :crypt: tag to a :nocrypt: tag and saved I cannot reproduce. May you create a small example file and explain how to trigger the problem you are seeing? > - Org spends around 20 seconds trying to save the file, in a loop, > reporting: (error "org-crypt: Encryption failed. Not saving the > buffer. Error: GPG error: \"Encrypt failed\", \"Canceled; Exit\"") This is curious, but I again have no clue. Maybe the new version of the branch works a bit better.=20 --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at