zsh-users
 help / color / mirror / code / Atom feed
From: Eric Cook <llua@gmx.com>
To: zsh-users@zsh.org
Subject: Re: Memory usage of history?
Date: Fri, 24 Jun 2016 18:57:38 -0400	[thread overview]
Message-ID: <e60f30fb-235c-8104-ab20-0c0a9a947090@gmx.com> (raw)
In-Reply-To: <20160624134706.GA22704@linux.vnet.ibm.com>

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.


  reply	other threads:[~2016-06-24 23:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-24 13:47 Dominik Vogt
2016-06-24 22:57 ` Eric Cook [this message]
2016-06-25  1:47 ` Bart Schaefer
2016-06-25 17:33   ` Nikolay Aleksandrovich Pavlov (ZyX)
2016-06-25 17:46     ` Bart Schaefer
2016-06-26 23:29     ` Bart Schaefer
2016-06-27  0:23       ` Nikolay Aleksandrovich Pavlov (ZyX)

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=e60f30fb-235c-8104-ab20-0c0a9a947090@gmx.com \
    --to=llua@gmx.com \
    --cc=zsh-users@zsh.org \
    /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).