Hi

The history backend needed a bit of a makeover in order to implement
new features like autosaving. I've written a new implementation
doesn't actually load the history file into memory in the regular way.
Instead it memmaps the file, and then searches the memory map when
needed for the history search. Using memmap means that all fish
processes automatically share the memory used by the history file.
When more than one fish instance is open and the history file is
large, this is a significant saving in memory. (Well, significant in
the meaning it's somewhere around half the memory used by fish. It's
insignificant in that it's probably still less than a megabyte, so
compared to a resource hog like e.g. xclock, this is nothing)

The new implementation also automatically saves the current contents
to history and reloads occasionally.

There are three user visible changes from the rewrite:

* Even if fish exits abnormally, most of your history will be saved
* You may find commands from another fish session that hasn't exited
yet in your history.
* Duplicate entries are allowed in $history and in the history file.
The duplicates are now removed by the history search functionality.

I guess none of these qualify as a significant change, but I think the
memmap implementation at least qualifies as a 'neat trick'.

The patch is in the darcs tree. I'd like to do a new fish release
soon, so there probably won't be any more new features for a while.
Expect a release when I've tried out the configuration transition code
some more.

-- 
Axel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to