Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Memory usage of history?



On 06/24/2016 09:47 AM, Dominik Vogt wrote:
> Could someone please explain the implications of having a large
> history file?
Uses more disk space
> Does an interactive zsh read the history file into
> private memory upon startup, or how does this work?
zsh reads $HISTSIZE number of lines from $HISTFILE upon startup.
which may be the same size as $SAVEHIST, which controls the
number of lines to keep in $HISTFILE.
> Is there a way to reduce memory and cpu consumption somehow?  (A colleague
> says his zshs use 200 MB memory each with a history size of a
> million lines).

Reducing the number of lines you tell zsh to keep in memory via
HISTSIZE would help.



Messages sorted by: Reverse Date, Date, Thread, Author