Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
HISTSIZE
- X-seq: zsh-workers 1294
- From: Hrvoje Niksic <hniksic@xxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx (ZSH Workers Mailing List)
- Subject: HISTSIZE
- Date: 08 Jun 1996 22:17:43 +0200
- Sender: hniksic@xxxxxxxxxxxxxx
I have noticed that when I set HISTSIZE (the maximum size of the
history list) in zsh to something huge, zsh takes huge amounts of
memory.
When I converted from bash, I have easily ported all the init files,
and HISTSIZE caused terrible problems (especially since I didn't know
HISTSIZE was causing them). The reason I set HISTSIZE to such a big
value is just to keep it from bothering me -- it is just a *maximum*
value I am changing. In bash it worked exactly that way (no additional
memory expense). But it seems that the organization of history storage
requires resizehistevents() to reallocate the list to HISTSIZE history
entries.
I wonder how difficult would it be to patch hist.c in such a way that
the actual size of the history list changes dynamically, HISTSIZE
being only an upper limit to that change.
--
hniksic@xxxxxxx | Student of electrical engineering
hniksic@xxxxxxxxxxxxx | University of Zagreb, Croatia
------------------------------------------------------------------
"Learning XEmacs is a lifelong activity. I've been using Emacs for over
a decade now, and I'm still discovering new features." -- from XEmacs FAQ
Messages sorted by:
Reverse Date,
Date,
Thread,
Author