2 ms·
For the most part I agree. This can generalized with the observation that a) sometimes is faster to recompute a function than caching it, and b) cache is a limi
by gpderetta 3y ago
For the most part I agree. This can generalized with the observation that a) sometimes is faster to recompute a function than caching it, and b) cache is a limited resource usually more than CPU cycles.
- vardump 3y agoSame. I've replaced a ton of LUTs with pure [vectorized] code and most of the time it's a big win. Some computations can of course be too heavy, but that's pretty rare nowadays.