go ahead... be a heretic | |
PerlMonks |
Re: The Rules of Optimization Clubby tinita (Parson) |
on Mar 31, 2012 at 12:01 UTC ( [id://962764]=note: print w/replies, xml ) | Need Help?? |
I hope you realize how ironic this sounds in this forum. my typical usage here is: click on a thread, than switch tab to a different forum/rss feed/whatever, read 2 or 3 articles, then switch back to perlmonks where the thread has finished loading ;-) first: I think everyone would agree that optimizing without having a clue is a waste of time. playing around with Benchmark and Devel::NYTProf can be really enlightening. but: if nobody ever cared about writing highly optimized perl modules, nobody would want to write applications and websites with it. I'm actually sick of people warning about premature optimization over and over. in the last weeks I have been optimizing my forum software which has been running live for over three years. I did many different optimizations, and by logging the different request times and viewing them in munin graphs I could clearly see what kind of optimizations were more successful and which less. so, yes: measure before or during optimization. if you are experienced though, often you don't need to measure beforehand.
In Section
Meditations
|
|