|
Show Index |
|---|
If your program is running sluggish, then here are some killer tips to improve the
efficiency of your code.
Copy and paste the example code snippets in the right column to see what kind of a
difference these tips make on your machine.
Note that the examples given are not necessarilly real world examples. The
examples are condensed down to the bare minimum code necessary in order to be easily
understandable and some examples use what would usually be unrealisticly large loops just
in order to show performance differences. But they are all valid optimizations and
when used together can get you a little more processing power out of your programs.
Also, the speed improvements listed (i.e. 30% faster) are approximations and vary
from computer to computer.
These examples were run on a 2.5GHz processor and depending on your computers speed
may be extremely slow...
Need to squeeze a little more?
STILL NEED MORE? /now showing/
STILL NEED MORE? In a pinch, you can try
these optimizations:
PLEASE NOTE: These optimizations are usually only useful when used in large
quantities, such as in very large loops. They make VERY small improvements to your
code execution time. HOWEVER, if you have a few sections of your code where a very
large quantity of computations/loops are being performed, then these optimizations may
squeeze just a little more out of those sections where you really need it.
|
||
|
||
| If you've reached this page and there's no index on the left, Click here to show the Index Page | |