Timeline for How can I optimize this for speed? (C++)
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 30, 2012 at 9:05 | vote | accept | hetelek | ||
Jul 30, 2012 at 8:35 | comment | added | Jan Hudec |
And the other broken thing: Initializing BYTE to 0x723A , which is too large for the type.
|
|
Jul 30, 2012 at 8:18 | comment | added | Loki Astari |
It would probably help you a lot to learn to use the profiling tools provided by MS. They will point you at any bottlenecks that need optimizations. The most affective optimizations are done at the algorithm level not at the micro what instruction should I use level.
|
|
Jul 30, 2012 at 8:13 | comment | added | hetelek | Would it help if I posted all the functions? | |
Jul 30, 2012 at 8:05 | history | edited | Loki Astari | CC BY-SA 3.0 |
added 216 characters in body
|
Jul 30, 2012 at 7:58 | comment | added | Loki Astari | @hetelek: I understand this. It is your other functions that are taking the time not this one. Making this return 0 just means you execute another path through the other code that is less expensive. This code is not causing any significant cost. | |
Jul 30, 2012 at 7:57 | history | edited | Loki Astari | CC BY-SA 3.0 |
added 210 characters in body
|
Jul 30, 2012 at 7:56 | comment | added | hetelek | It also calls other methods 300,000 times. I'm just saying that's how much it takes off of the whole process, as there are many other functions being called, not just this one. | |
Jul 30, 2012 at 7:50 | history | answered | Loki Astari | CC BY-SA 3.0 |