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
- X-seq: zsh-workers 6543
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: avoid history was: Re: PATCH: pws-21: parentheses in command word
- Date: Wed, 9 Jun 1999 10:43:20 +0200 (MET DST)
- In-reply-to: Sven Wischnowsky's message of Wed, 9 Jun 1999 10:38:22 +0200 (MET DST)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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