From: Arthur Miller <arthur.miller@live.com>
To: Qiantan Hong <qhong@mit.edu>
Cc: "larsi@gnus.org" <larsi@gnus.org>,
Zhu Zihao <all_but_last@163.com>,
David Engster <deng@randomsample.de>,
"emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: Against sqlite3!!!
Date: Wed, 08 Dec 2021 10:21:48 +0100 [thread overview]
Message-ID: <AM9PR09MB49772345CF13C1179557EDB7966F9@AM9PR09MB4977.eurprd09.prod.outlook.com> (raw)
In-Reply-To: <981F36EB-677F-4043-BE09-68226371D7B6@mit.edu> (Qiantan Hong's message of "Wed, 8 Dec 2021 06:20:42 +0000")
Qiantan Hong <qhong@mit.edu> writes:
>> Than implement a way for Emacs to dump lisp objects to files faster. It would be
>> very useful for Emacs in general.
> I think for this question, the one-and-for-all solution is. to have a fully
> incremental persistent object store, i.e. all mutation are stored
> incrementally without ever needing to print out the “fully value”
> of a Lisp value. What do you think?
I am not sure I understand what you mean. What is "fully value" of a Lisp
value. You mean entire object?
> resist!.el in its current form basically implemented a special case
> of the above, where only mutation to the top level hash table
> is persisted incrementally.
>
> I can’t see a way to implement persistent object store without
> some non-trivial memory overhead, though (because each
> object has to get an unique id). The best thing I can come up
> with has to have a hash table that maps every object in the
> store to a numeric ID. Is that too much?
Honestly, I have no idea.
I just meant that it is very useful to be able to serialize/deserialize lisp
ojbects, in general, without need to go through some intermediate key/value
database.
I don't know what you are doing to start with; I haven't looked at your
resist.el, but maybe you can cache keys that needs to be flushed to disk in some
'dirty state (a list of kyes) and flush just those keys to a file in idle timer.
next prev parent reply other threads:[~2021-12-08 9:21 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <MN2PR12MB3391BC76A0D05236AC76C94E946E9@MN2PR12MB3391.namprd12.prod.outlook.com>
2021-12-07 8:13 ` Against sqlite3!!! (Was: sqlite3) Qiantan Hong
2021-12-07 9:14 ` Qiantan Hong
2021-12-07 12:49 ` Against sqlite3!!! Colin Baxter 😺
2021-12-07 13:21 ` Stefan Monnier
2021-12-07 13:55 ` Qiantan Hong
2021-12-07 15:51 ` Tassilo Horn
2021-12-07 16:35 ` Qiantan Hong
2021-12-07 18:43 ` Arthur Miller
2021-12-07 19:13 ` Qiantan Hong
2021-12-07 19:34 ` Tassilo Horn
2021-12-08 10:00 ` Yuri Khan
2021-12-07 19:52 ` Stefan Monnier
2021-12-07 13:45 ` Against sqlite3!!! (Was: sqlite3) Zhu Zihao
2021-12-07 14:50 ` Against sqlite3!!! David Engster
2021-12-07 20:00 ` Lars Ingebrigtsen
2021-12-08 6:11 ` Arthur Miller
2021-12-08 6:20 ` Qiantan Hong
2021-12-08 9:21 ` Arthur Miller [this message]
2021-12-08 9:28 ` Qiantan Hong
2021-12-09 7:12 ` Alexandre Garreau
2021-12-09 7:27 ` Qiantan Hong
[not found] ` <24465971.J1OoJ6LT5i@galex-713.eu>
2021-12-09 7:50 ` Qiantan Hong
2021-12-09 19:16 ` Thierry Volpiatto
2021-12-09 19:24 ` Qiantan Hong
2021-12-09 19:28 ` Qiantan Hong
2021-12-09 13:17 ` Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AM9PR09MB49772345CF13C1179557EDB7966F9@AM9PR09MB4977.eurprd09.prod.outlook.com \
--to=arthur.miller@live.com \
--cc=all_but_last@163.com \
--cc=deng@randomsample.de \
--cc=emacs-devel@gnu.org \
--cc=larsi@gnus.org \
--cc=qhong@mit.edu \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.