[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mmap visited files?
From: |
Richard Stallman |
Subject: |
Re: mmap visited files? |
Date: |
Tue, 19 Feb 2002 14:30:17 -0700 (MST) |
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.
- Re: mmap visited files?,
Richard Stallman <=