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

Re: _bison -vV<TAB> dumps core.

Tanaka Akira wrote:

> > Thank you for helping me debugging `computil'. Is it fast enough for
> > you? And is the speed difference to the shell code noticeable?
> It's good.  I can feel the difference on Sun Ultra5.
> Unfortunately, it is not general enough to be used by _apt.
> I think the idea of general command line parsing builtin mentioned in
> 7956 is very good.  _regex_arguments (used by _apt) is too slow.

The problem which I hadn't thought about before is caching. To allow
(aggressive) caching and avoid having to give the definitions more
than once and avoid using some sort of tag passing back and forth
(between C- and shell-code) argument and command line parsing have to
be done together (of course, this also simplifies the C-code but that
shouldn't matter too much). Anyway, the parsing stuff is nicely
separated in C, so it wouldn't be too hard to re-use some of the
functions for other helper builtin (in fact, `compvalues' already uses 
code originally written for `comparguments'). But `regex_arguments'
(which I was thinking about, too) is different enough to justify its
own builtin, I think.


Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx

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