Good day guys. I’m using bloodshed devc++ as ide which, I believe, is using mingw as compiler. I’ve been reading up lots of articles talking about optimization of code and bottlenecks which makes me want to try their recommended techniques :)). So the questions are:
- How do I measure how efficiently or how poorly my code is running?
- How do I know which parts of my code are the ‘bottlenecks’ (am I using the term right?)
thanks!
You can use a profiler in order to see what portions of your code are taking most time.
It’s harder to say if your code is overall efficient or not. Try and compare its completion time with similar applications. You should define what performance you need and try to optimize your code in order to be below your threshold.