3 ms·
I've always wondered too if it would be possible to log all the values it's actually calculating the inverse square root for, and just save them in a lookup tab
by grecy 6y ago
I've always wondered too if it would be possible to log all the values it's actually calculating the inverse square root for, and just save them in a lookup table.
Or even just the most common x% of them if you could reliably know for which numbers its most commonly running the calculation on.
- jleahy 6y agoEven if you pretend it’s a few values (which it’s not, there are a lot of floats), this would be dramatically slower due to the cache miss involved.