From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: mmap visited files?
Date: Tue, 19 Feb 2002 14:30:17 -0700 (MST) [thread overview]
Message-ID: <200202192130.g1JLUHS13061@aztec.santafe.edu> (raw)
In-Reply-To: <x7zo27v0r2.fsf@capsicum.wsrcc.com> (message from Wolfgang Rupprecht on Mon, 18 Feb 2002 05:04:49 GMT)
I use mmap-ed data files in my gps-mapping program and there is
another big win if one plays one's cards right: free autosaves. In my
case I temporarily append stuff to the end of the mmap-ed file. If
the program crashes, the data in the mmaped buffers still gets flushed
to the underlying disk file by the OS. It sure beats complex autosave
logic. It might be worth trying a similar hack for emacs -- mmap the
single-gap buffer directly into a temporary file.
This might possibly be a good idea. It could not replace the current
auto-save feature, because the mmap'd file would have a gap in it and
it would not be possible to record where that is. Also, the pages may
not necessarily be saved at the same time. So it would take hand
editing to use this file for recovery. But it might be useful
nonetheless.
The question is how much additional value this would give beyond the
existing auto save feature. Maybe not much.
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel
next parent reply other threads:[~2002-02-19 21:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20020218004118.700.qmail@brouhaha.com>
[not found] ` <x7zo27v0r2.fsf@capsicum.wsrcc.com>
2002-02-19 21:30 ` Richard Stallman [this message]
2002-02-21 21:46 ` mmap visited files? Ken Raeburn
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=200202192130.g1JLUHS13061@aztec.santafe.edu \
--to=rms@gnu.org \
--cc=emacs-devel@gnu.org \
/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).