From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3/2) with ESMTP id GAA11410 for ; Sun, 9 Jun 1996 06:26:28 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id QAA06804; Sat, 8 Jun 1996 16:19:17 -0400 (EDT) Resent-Date: Sat, 8 Jun 1996 16:19:17 -0400 (EDT) Sender: hniksic@public.srce.hr To: zsh-workers@math.gatech.edu (ZSH Workers Mailing List) Subject: HISTSIZE From: Hrvoje Niksic Date: 08 Jun 1996 22:17:43 +0200 Message-ID: X-Mailer: Gnus v5.2.12/XEmacs 19.13 Resent-Message-ID: <"2AJQb.0.Bg1.41Ukn"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1294 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu 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