Dideved - 12:11 am on Apr 20, 2013 (gmt 0)
> Which can add up to a lot of microseconds when people run thousands of
> rules processing tens of thousands of visitors per hour.
After a whole day of tens of thousands of visitors per hour, this optimization would have saved you a grand total of about 10 milliseconds... in total... for the whole day.
The prevailing wisdom of the web community is that micro-optimizations are a bad reason to complicate our code, and they're definitely a bad reason to introduce bugs. Lucy's and g1's patterns knowingly ignore valid scenarios in favor of this micro-optimization.
Of course, everyone is entitled to their opinion, but to try to justify that opinion with false information is bad for everyone. The claim that this is a big optimization is false, and to imply that it's is a widely accepted practice is also false.