While programming optimization that makes ones' code completely unreadable is often a bad thing, there are places for it, like that one inner loop of your code that takes up 98% of the program's running time.
What are you tricks for improving performance in C, other than the obvious inline assembly or the like?
Name:
Anonymous2007-09-16 15:23 ID:xXOet/pd
>>44
integer division is pretty damn fast.
rand()&1 is a lot less random than rand()/(INT_MAX/2).