Hi

You are welcome. Well, the links I provided are illustrating what I said. In order to
learn optimization, start with a google search like
"code optimization c c++ pipelining examples filetype:pdf".
Eg. look at [1], and continue reading from there. Try to understand optimisation by
looking at simple examples, and then apply it to your specific problem.

The problem with optimisation is, that there are some general concepts, but high-end
optimisation is very specific to the task to be performed by the program. In my previous
post, I have choosen some point of view for illustration (that's why I am not very happy
with it). But I hope, it helps you to get the idea.

Good luck.

Cheers

[1] http://www.azillionmonkeys.com/qed/optimize.html