Speed is more an issue of good algorithms rather than efficient code... or at least should be.

Cryptic code just for speeding up things should be avoided. Instead the algorithm should be rechecked. Maybe it wasn't done the most efficient way.