Imagine you work for
Microsloth
, the 800-pound gorilla in the software industry. Your
flagship product
is slow, like all your other products. You have been charged with speeding
it up by at least 10%. You cannot change the algorithm itself, because it
is the brainchild of your boss, Gill Bates. He calls you into his office
and says:
- Download, compile, link and run the flagship product. Note how
long it takes.
- Make necessary modifications,
but not to the algorithm itself. The assembly code produced by the compiler may offer
some hints.
- Test your code to see the speedup.
- If you see no speedup, click here.