FreeBSD Bugzilla – Bug 143981
[patch] shells/zsh: ZSH_MEM, ZSH_SECURE_FREE, DEBUG
Last modified: 2011-11-06 18:40:11 UTC
zsh 'exit' takes approximately 10s with 30k history items,
SAVEHIST/HISTSIZE both at 100000 on my amd64 build. An i386 jail is
faster using the same history file, but it is still not "instant".
Diagnosed the problem to be the zsh memory (de)allocation routines.
Compiling without --enable-zsh-mem results in my zsh exiting "instantly"
The attached patch separates the zsh-mem and zsh-secure-free options in
the port, defaulting zsh-mem to off.
Fix: Don't compile with --enable-zsh-mem
Patch attached with submission follows:
How-To-Repeat: Install zsh with default options on an amd64 build and try to exit zsh
with 30k+ items in ~/.histfile
Over to maintainer.
Do we really want a zsh-specific DEBUG option? Shouldn't we rather
piggyback on WITH_DEBUG?
Dag-Erling Sm=C3=B8rgrav - email@example.com
any process here? if no let close.
I'll take it.
Attached a modified patch to remove the DEBUG option and just use WITH_DEBUG.
+1 303 219 0042
bapt 2011-11-06 18:35:06 UTC
FreeBSD ports repository
- split the zsh_mem option into zsh_mem and zsh_secure_free activate secure_free my default disable mem by default
- correct memory report for time builtin 
- bump portrevision
PR: ports/143981 , ports/152820 
Submitted by: Richard Kolkovich <firstname.lastname@example.org> , Anonymous <email@example.com> and Tsu <firstname.lastname@example.org> 
Hurried by: miwi :)
Revision Changes Path
1.129 +19 -8 ports/shells/zsh/Makefile
email@example.com mailing list
To unsubscribe, send any mail to "firstname.lastname@example.org"