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

Re: PATCH: avoid history was: Re: PATCH: pws-21: parentheses in command word



I wrote:

> This is the last one of the patches I played with, trying to make zsh
> faster. It avoids using the history when the line built by is not
> used. The problem is that the code in hist.c always keeps a buffer
> with the stuff read, even when sourcing files or autoloading
> functions. The size of this buffer in incremented in steps of 16
> bytes, so when loading a function like _path_files, this results in
> several hundred calls to realloc() -- which is annoyingly expensive.

Oh damn. I got this patch the wrong way round. Err... if you want to
try it, just use `patch -R', ok? Sorry.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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