P is for Practical | |
PerlMonks |
Re^2: Optimizing perl code performanceby QM (Parson) |
on Aug 17, 2015 at 09:33 UTC ( [id://1138861]=note: print w/replies, xml ) | Need Help?? |
I'm wondering if a regExp would be faster than split.split takes a regex, so an optimized regex similar to the split could only be marginally better, and potentially much worse, especially for simple cases like this. Likewise chomp is very simple, and is probably zillions of times faster than IO. Profile, then fiddle. Lather, rinse, repeat. -QM
In Section
Seekers of Perl Wisdom
|
|