Loop Optimization
anyone have any good resources for learning about loop Optimization in c#?
I am making really good logical changes to my code by taking out if statements and removing other reoccurring code that doesn't need to be called all the time and i am actually somehow increasing the amount of time it takes my loop to run ...
it makes absolutely no sense .. so i want to start studying this subject to have a better understanding of what the hell is going on
3 Replies
"loop optimization" is a bit too general. if you posted some code and the "optimizations" you made to it you thought would make it faster, along with the way you're actually profiling it, it might be easier to offer actual help
well i am just looking for resources ... blog posts ... youtube videos ... code examples ... i can't really post me code cuz it would take 1000000000 years to explain what it is doing and what i changed ... so i am just trying to get info on good resources
i think you don't necessarily need to remove ifs if the execution path is predictable