Practical optimization: where to start

Apr 02, 2012 20:16


Run your program on a platform slow enough that you
  1. care, and
  2. can feel where the problems are.

(Something - I assume a Chrome update - caused Cubes to run more slowly. Over fifteen seconds of startup time is just not fun for debugging, so I went looking for problems. Unfortunately, it wasn't anything straightforwardly bad, but the heaviest thing ( Read more... )

thoughts, programming, javascript, cubes

Leave a comment

Comments 4

atheorist April 3 2012, 00:24:34 UTC
There might be a general principle here, something about programmers using their human faculty of empathy with the machine, and that faculty being strained by too great a speed difference.

"playing machine" is a standard training technique.

Reply


anonymous April 3 2012, 01:51:41 UTC
I think this is good advice and we often see it applied backwards: the hardware is so fast that we don't need to care about optimizing stuff which translate to inefficiencies and waste (at least in my book).

Reply

kpreid April 3 2012, 02:44:36 UTC
It is entirely reasonable to not care about microoptimization of infrequently executed code.

Reply

anonymous April 7 2012, 15:16:38 UTC
Your dead on the money there!! A few years back I was given the task of optimising fetching data for web site that was timing out during certain requests. I was only able to work on the back-end code not the server processing being done to render the pages.
To the dismay of my manager I complete failed as the real performance killer was a pointless bubble sort in front-end that I couldn't do anything about. Given the hard time I had explaining this to result driven management has made me quite nervous about the putting together data back-ends for frankly graduate level coded front-ends.

Reply


Leave a comment

Up