3 ms·
That's the longest handwritten function I think I've ever seen :-) I don't know what limits the compiler imposes, but I wouldn't be surprised if you hit them
by kenjackson 15y ago
That's the longest handwritten function I think I've ever seen :-)
I don't know what limits the compiler imposes, but I wouldn't be surprised if you hit them.
- iam 15y agoThat's definitely the problem, compiler optimizations are easily O(N^2) on the # of operations in a function, so rather than taking forever to compile they'll turn off optimization if it takes too long. Ask yourself, do you even need a function that large? You might already be approaching the limits of the L1 cache, at which point you might as well be using separate functions since the call itself will be negligible to the cache miss.