Beware of Statics
8/2/07 - 19:01 PST - Posted by Carl Glave, Engine Programmer
While working on an optimization for the FXVis system, I managed to make some code slower just by rearranging some statics it was using. Not one to take something like this lying down, I looked into it, and learned something that seems worth sharing. Read the details: beware_of_statics.txt
( As a small addendum to the problem of this function, Mike Day optimized that function over the last weekend as just something to do. He managed to make it four instructions shorter (six if it’s inlined, as there’s a nop and an lnop). See: SimdFloatToHalf.txt )
[ 0 ]
|
|