in reply to Re^3: How to optimise " csv into mysql " using TEXT:CSV_XS and DBD::Mysql
in thread How to optimise " csv into mysql " using Text:CSV_XS and DBD::Mysql
Hi, Laurent_R
I upvoted your response, because I can see where you're coming from and do agree that profiling tools have their place.
I disagree however, with the idea that profiling is never a bad idea. Someone not understanding what the code is doing will get nothing more than a very general idea of their script spending most of its time doing y. They might then spend an inordinate amount of time 'fixing' y to run much more quickly, without ever understanding that changes in other parts of the code means y is called less often (or even completely factored out), potentially resulting in much better performance gains than fixing y might ever yield.
So yes, I agree that profiling is a very useful tool, however it can be a double edged sword and should be used carefully when the developer understands what their code is doing.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How to optimise " csv into mysql " using TEXT:CSV_XS and DBD::Mysql
by Laurent_R (Canon) on Aug 07, 2015 at 13:18 UTC |