Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion tricks
- X-seq: zsh-users 3699
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: completion tricks
- Date: Tue, 20 Mar 2001 08:37:15 +0000
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <Pine.LNX.4.31.0103191314040.4850-100000@neptune> <20010319141533.D94071@xxxxxxxxxx> <20010319213006.B21595@xxxxxxxxxxxxxxxxxxxxxxx> <874rwpmny9.fsf@xxxxxxxxxxxxxxxxxx> <20010319220411.A22344@xxxxxxxxxxxxxxxxxxxxxxx> <87r8ztl7lc.fsf@xxxxxxxxxxxxxxxxxx> <20010319230628.A22826@xxxxxxxxxxxxxxxxxxxxxxx> <200103200828.JAA06269@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
On Mar 19, 1:46pm, Matt Armstrong wrote:
} Subject: Re: completion tricks
}
} I was using the new completion stuff for a while, but I switched back
} for two reasons:
}
} - The learning curve to actually do stuff with the new completion
} stuff was above my personal threshold.
On the other hand, the new completion system does more in its shipping
configuration than was ever collected from all contributors of compctl
commands. The amount of stuff that you _need_ to do yourself is less.
} - My shells started up many times slower with it in place.
On Mar 19, 10:04pm, Adam Spiers wrote:
} Subject: Re: completion tricks
}
} This is a shame, but I can totally sympathise with your viewpoint. I
} would love to hear some tips from any zsh-workers as to how zsh can be
} optimised with respect to startup time. (Optimisation w.r.t. memory
} usage is another topic I would like to hear people's thoughts on, but
} it's off-topic here.)
Sven did a couple of optimizations posted in zsh-workers/13589 that
should both increase the speed and cut down the memory usage a lot. If
you haven't tried again with the latest snapshot, you should. Or at
least try again when 4.0.1 is released.
} [Note to workers: would it be worth having `make install'
} automatically zcompile the completion system?]
Maybe; the .zcompdump file actually does make a lot of difference. In
tests I just tried (on a 233MHz Pentium II), "zsh -li" started in 1.05
seconds with a .zcompdump file, as opposed to 2.35s with "compinit -D"
(other garbage in my startup files being equal). Incidentally, it took
3.64s to start up and write the .zcompdump in the first place.
On Tue Mar 20, 9:28am, Sven Wischnowsky wrote:
} Normal users who have installed the functions in their home
} directories or who can trust their system administrators can call
} compinit with the -C option. This avoids the security check
} (compaudit) and it avoid parsing the tag lines of the completion files
compinit -C cut the time from 1.05s to 1.01s.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author