From: Hrvoje Niksic <hniksic@srce.hr>
To: zsh-workers@math.gatech.edu (ZSH Workers Mailing List)
Subject: HISTSIZE
Date: 08 Jun 1996 22:17:43 +0200 [thread overview]
Message-ID: <kigohmuhwyg.fsf@jagor.srce.hr> (raw)
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@srce.hr | Student of electrical engineering
hniksic@fly.cc.fer.hr | 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
next reply other threads:[~1996-06-08 20:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-06-08 20:17 Hrvoje Niksic [this message]
1996-06-10 19:05 ` HISTSIZE Zoltan Hidvegi
1996-06-10 19:10 ` HISTSIZE Hrvoje Niksic
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=kigohmuhwyg.fsf@jagor.srce.hr \
--to=hniksic@srce.hr \
--cc=zsh-workers@math.gatech.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 public inbox
https://git.vuxu.org/mirror/zsh/
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 NNTP newsgroup(s).