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

When is following code being run?



Hello,
file params.c, line 1572 and following in the else block:

https://github.com/zsh-users/zsh/blob/master/Src/params.c#L1572-L1583

The strlen can be optimized out, as getstrvalue has most probably ran it
already. I wonder about benefits, as there will be probably none, as "
if (pprog && pattry(pprog, d) &&" and similar code consumes probably 95%
of CPU cycles. But would test this, who knows.

-- 
  Sebastian Gniazdowski
  psprint@xxxxxxxxxxxx



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