* Johan Vromans <[EMAIL PROTECTED]> [2005-06-18 13:05]:
> But in the mean time computers have become 5 to 10 times as
> powerful, so would it still be a real problem?

Yes!

The most problematic scripts I have is a set that’s launched by
GUI events, sometimes in rapid succession. Every microsecond
counts – even on a 2GHz Athlon with plenty of spare memory and
very fast disks. I did my own share of sticking things in
“eval ""” to avoid as much cost as possible, but in the end I had
to throw out Getopt::Long in favour of ::Std to get acceptable
consistent startup times. On slower machines they’re still laggy.
I’ve pondered copypasting the switch processing code…

Optimizing for minimal one-shot cost isn’t fun, it’s painful…

Even with less critical scripts, like my overhaul of the rename
script (where there’s no way I’m dropping to a less capable
switch parser), the fixed overhead is noticable when the script’s
task is not computation intensive.

Regards,
-- 
#Aristotle
*AUTOLOAD=*_=sub{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1};
&Just->another->Perl->hacker;

Reply via email to