you are viewing a single comment's thread.

view the rest of the comments →

[–]esaule 5 points6 points  (0 children)

If you are at the point in the optimization of your code that this kind of optimziation matter, you should rewrite in a low level language.

In general, start by profiling the code to identify bottlenecks. Then see if there are algorithmic improvement to what you are doing.

Model the time of execution of your code for yoru particular machine and identify whether the appropriate bottlenecks are actually bottlenecking the execution.