Hello Amod,
On Wed, 11 Oct 2006 05:20:44 UTC, "Amod" <am********@gmail.comwrote:
hi all,
Kindly suggest some tips to optimize the C++ code for higher speed.
regards,
Amod
Also consider the choices make as you program. Sometimes we know
where bottlenecks may be and other tmes they appear in suprising
places. You'll have to know your tools and measure its performance.
This is usually done after the fact since it is difficult to
gauge the performance of something that doesn't exist. There are
exceptions though.
Consider a large sort or data extraction problem. For small data
sets the method might not be very important as it doesn't affect
the speed that much. Larger data sets we often do need to worry.
You need to choose the right solution for a problem. Communcations
are another good example where how you choose to have products
talk to one another can make a huge difference.
Please remember that speed is often not enough. Correct comes
first. There are some problems where an exact predictable answer
is not needed, but hopefully you know when those methods can be
used.
David