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

Re: (bug report) Starting zsh takes ~5 seconds with the latest commits after 20th of September with big history file



On Sat, 02 Oct 2010 13:04:54 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Oct 2,  7:58pm, Peter Stephenson wrote:
> }
> } On Sun, 26 Sep 2010 13:15:27 -0700
> } Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> } > (2) implicitly turn that option off on the way through shell exit, so
> } >     history rewrites/comparisons use faster processing.
> } 
> } Sounds like the shell is already doing too much work here.
> 
> I think by adding the (readflags & HFILE_FAST) test to the check for
> isset(HISTLEXWORDS), both problems are solved.  Do that for commit?

i.e. !(readflags & HFILE_FAST) in that branch.  I've done that.  Should
have come back from holiday an hour later.

-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



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