4 ms·
You can do a lot of useful performance analysis with only a profiler and trial-and-error. Also sometimes mathematics seems to help.
by eru 18y ago
You can do a lot of useful performance analysis with only a profiler and trial-and-error. Also sometimes mathematics seems to help.
- gizmo 18y agoYou can only really get the lowhanging fruit that way. There are so many different methods of optimization that you have to know where to start. You have to have a good model of the underlying system. Otherwise you won't understand why boxed integers are inherently slow. Or why an array of tuples can be much slower than a tuple of arrays. Modern languages completely abstract from fundamental things like indirection. Consequently, it becomes almost impossible to accurately estimate the performance of algorithms in high level programming languages. Waiting for people with experience optimizing prolog programs to disagree with me...
- eru 18y agoOptimizing Haskell seemed to require quite deep knowledge about the way the compiler worked.
- comatose_kid 18y agoSure, you can analyze, but there are cases where you will not be able to do much about your findings without an understanding of computer architecture.