If you want to optimize your code, I would first suggest you to profile your code (some for windows can be found here : https://stackoverflow.com/questions/67554/whats-the-best-free-c-profiler-for-windows-if-there-are).
Programmer are usualy very poor at finding bottleneck in code and profiler will help you to find where 20% of your code run 80% of the time.
Then with thoses information, we will be able to give you a better kind of help.
- 199
- 5