zsh-users
 help / color / mirror / code / Atom feed
From: Chris Down <chris@chrisdown.name>
To: ZyX <kp-pav@yandex.ru>
Cc: Zsh users <zsh-users@zsh.org>
Subject: Re: Infinite history size
Date: Sat, 14 Dec 2013 19:53:45 +0800	[thread overview]
Message-ID: <20131214115345.GA17562@chrisdown.name> (raw)
In-Reply-To: <2151387021752@web29g.yandex.ru>

[-- Attachment #1: Type: text/plain, Size: 991 bytes --]

On 2013-12-14 15:49:12 +0400, ZyX wrote:
> It is not possible for history to occupy more memory then you have
> thus if you think there is no upper limit then you are false.

While true, any "infinite" related to resource consumption in computer
science has similar restrictions related to the environment, I
considered it an implicit caveat of my request.

> You should determine how much memory you have, how much of it you can
> allow to be occupied by the history (AFAIK it is always fully loaded
> into memory) and act accordingly. Removing the limit is not wiser as
> it leaves you with an idea that there is no limit while it is always
> limited by available resources.
>
> Or if you do not think you will ever hit a problem with resource
> exhaustion you can just set HISTSIZE to LONG_MAX from limits.h: it is
> the maximum number HISTSIZE can have.

So I'll take the answer as "you can't" (although LONG_MAX is obviously
not something that I'm going to reach :-) ).

Thanks anyway.

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2013-12-14 11:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-14 10:48 Chris Down
2013-12-14 11:49 ` ZyX
2013-12-14 11:53   ` Chris Down [this message]
2013-12-15 20:06     ` Bart Schaefer
2013-12-15 20:17       ` Bart Schaefer

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=20131214115345.GA17562@chrisdown.name \
    --to=chris@chrisdown.name \
    --cc=kp-pav@yandex.ru \
    --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).