unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: tomas@tuxteam.de
Cc: emacs-devel@gnu.org
Subject: Re: Storing sensitive data indefinitely in variables or buffers: Whether and how to fix?
Date: Thu, 01 Jun 2023 07:11:25 +0000	[thread overview]
Message-ID: <87y1l3bqsi.fsf@localhost> (raw)
In-Reply-To: <ZHg/3lE9A7/AQ/pG@tuxteam.de>

tomas@tuxteam.de writes:

>> You will hit an error, sooner or later. We are going to use cache in more
>> scenarios.
>
> I get to keep both parts, I know. I'd definitely prefer an official
> switch, but with no code to offer I won't even dare to complain :)

Maybe `org-element-cache-persistent' is enough for your needs?
This specific part can be disabled. The problem is rather with caching
previews and remote images - we previously had to rely on
`org-preview-latex-image-directory' and similar case-by-case approaches,
but aim to centralize cache storage into unified API.

>> If your Emacs is snappier without cache, you likely experience slowdowns
>> on long sessions. If so, it is another problem you are just postponing.
>
> Actually not. Rather around the start. If interested, I can try
> to provide data. But I won't bother people with it without a
> request.

If you are seeing "Reading from ... took ...sec", it may be either disk
reading speed (unlikely) or older Emacs where `read' was less optimized.

>> > I'd hate to end up with a setup like the monster browsers have
>> > these days: an obscure set of sqlite databases you need a huge
>> > amount of dedication to extract some slivers of information from.
>> 
>> I am sure we will not.
>> 
>> For multi-session, it is up to you whether to store information in
>> SQLite database or in plain text files. The default for
>> `multisession-storage' is 'files. I doubt that we are going to change
>> this default in the nearest dozen of years (It is Emacs after all :])
>
> It is not specifically about SQLite...

Well. The current de facto situation is scattered files in your
.emacs.d. Not sure how it is better.

>> For org-persist, it is designed to store disposable information that can
>> be re-generated any time. Even then, org-persist tries to keep the
>> index.eln human-readable.
>
> ...but about complexity. Having a generic cache which works for all
> applications will make the code (application code and cache data)
> necessarily more inscrutable. OTOH, every little application doing
> its own thing is problematic in its own way. As an engineer, you
> seldom win ;-)

Not sure here. I'd rather say that the situation is an opposite.
Have you looked inside index.eln created by org-persist? It is not far
from how automatically generated `custom-set-variables' reads.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



  reply	other threads:[~2023-06-01  7:11 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-30 21:25 Storing sensitive data indefinitely in variables or buffers: Whether and how to fix? Jens Schmidt
2023-05-31  8:02 ` Ihor Radchenko
2023-05-31 16:39   ` Adam Porter
2023-05-31 18:17     ` tomas
2023-06-01  6:34       ` Ihor Radchenko
2023-06-01  6:51         ` tomas
2023-06-01  7:11           ` Ihor Radchenko [this message]
2023-05-31 19:05     ` Eli Zaretskii
2023-06-01  6:48       ` Ihor Radchenko
2023-06-01  7:11         ` Eli Zaretskii
2023-06-01  7:29           ` Ihor Radchenko
2023-06-01  7:33             ` Eli Zaretskii
2023-06-01  7:34           ` tomas
2023-05-31 19:37     ` Jens Schmidt
2023-06-01  6:42       ` Ihor Radchenko
2023-06-01 20:10         ` Jens Schmidt
2023-06-01 20:47           ` Adam Porter
2023-06-02  6:30             ` Eli Zaretskii
2023-06-04 23:47               ` Adam Porter
2023-06-05  2:31                 ` Eli Zaretskii
2023-05-31 12:56 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y1l3bqsi.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=emacs-devel@gnu.org \
    --cc=tomas@tuxteam.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).