how can i increase the speed of my C++ calculation [closed]

To optimise code, you either try to change the algorithm after analysing the complexity of it and finding one with a lower complexity. There is no magic behind this task, you have to research to figure it out.

Or you profile the code using dedicated tools which are platform dependent. A profiler will tell you how much time is spent at every level of your program. Then it is possible to investigate where it is worth the effort to try and find a different approach.

There is no silver bullet to your question. You have to investigate and research.

Browse More Popular Posts

Leave a Comment