in reply to Re^3: evil code of the day: global stricture control
in thread evil code of the day: global stricture control
We can discuss whether this optimization is premature or not, but sometimes avoiding Carp could be explained... somehow.
Another example - when using DynaLoader elder Perl may times checked for $^O, like it could change during the run.
There are Yin and Yang - some people stuck unneeded modules everywhere for the sake of imaginary improvement of code readability, others send optimization patches, because otherwise using innocent module will result in some tens of unneeded PMs loaded.
It seems to me that if Ilya Zakharevich never send his optimization patches, then Perl could be as slow as Java...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: evil code of the day: global stricture control
by chromatic (Archbishop) on Aug 03, 2007 at 07:27 UTC | |
by vkon (Curate) on Aug 03, 2007 at 07:57 UTC |