* zsh and memory
@ 1999-12-13 6:15 Danny Dulai
1999-12-13 18:24 ` Bart Schaefer
0 siblings, 1 reply; 3+ messages in thread
From: Danny Dulai @ 1999-12-13 6:15 UTC (permalink / raw)
To: zsh-users
Any hints on how to make zsh not consume as much memory as it does?
I'm not using the zftp or stat modules. Any thing else I can do?
--
___________________________________________________________________________
Danny Dulai Feet. Pumice. Lotion.
http://www.ishiboo.com/~nirva/ nirva@ishiboo.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: zsh and memory
1999-12-13 6:15 zsh and memory Danny Dulai
@ 1999-12-13 18:24 ` Bart Schaefer
1999-12-15 2:07 ` Danny Dulai
0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 1999-12-13 18:24 UTC (permalink / raw)
To: Danny Dulai, zsh-users
On Dec 13, 6:15am, Danny Dulai wrote:
} Subject: zsh and memory
}
} Any hints on how to make zsh not consume as much memory as it does?
} I'm not using the zftp or stat modules. Any thing else I can do?
It'd be easier to answer the question if we knew what you ARE doing.
"Is there any way I can get rid of these lumps on my head? I'm not
hitting myself with a hammer."
Various things you should avoid if memory is a problem include:
setopt ALLEXPORT
use large here-documents
define lots of shell functions without using autoload
use "zed" (old) or the mapfile module (new) to edit files
use the new 3.1.6 shell-function-based completion system
The last one is a bit unfortunate, but just "compinit" (without even
trying any completions yet) adds half a megabyte to the RSS of zsh on
my system, and it only goes up from there as functions autload and
start caching their results in shell variables.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: zsh and memory
1999-12-13 18:24 ` Bart Schaefer
@ 1999-12-15 2:07 ` Danny Dulai
0 siblings, 0 replies; 3+ messages in thread
From: Danny Dulai @ 1999-12-15 2:07 UTC (permalink / raw)
To: zsh-users
On 12/13/99, Bart Schaefer said:
>On Dec 13, 6:15am, Danny Dulai wrote:
>} Subject: zsh and memory
>}
>} Any hints on how to make zsh not consume as much memory as it does?
>} I'm not using the zftp or stat modules. Any thing else I can do?
>
>It'd be easier to answer the question if we knew what you ARE doing.
>"Is there any way I can get rid of these lumps on my head? I'm not
>hitting myself with a hammer."
I'm just running zsh, defining like 4 very very small functions, like 25
aliases, like 15 completions using compctl, various options set (but not
ALLEXPORT). I'm using vi keybindings, adding like 5 of my own, and not
using anything like zed or any other modules. Never do I use a
here-documents.
Even running zsh -f with no /etc/zshenv existent, will give me a shell
significantly larger than a bash.
>Various things you should avoid if memory is a problem include:
>
> setopt ALLEXPORT
> use large here-documents
> define lots of shell functions without using autoload
> use "zed" (old) or the mapfile module (new) to edit files
> use the new 3.1.6 shell-function-based completion system
>
>The last one is a bit unfortunate, but just "compinit" (without even
>trying any completions yet) adds half a megabyte to the RSS of zsh on
>my system, and it only goes up from there as functions autload and
>start caching their results in shell variables.
--
___________________________________________________________________________
Danny Dulai Feet. Pumice. Lotion.
http://www.ishiboo.com/~nirva/ nirva@ishiboo.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-12-15 2:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-13 6:15 zsh and memory Danny Dulai
1999-12-13 18:24 ` Bart Schaefer
1999-12-15 2:07 ` Danny Dulai
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).