3 ms·
My point wasn't about how you were timing the code, what I meant is in the real world, I don't think there are programs where this will be an issue because if t
by adgjlsfhk1 5y ago
My point wasn't about how you were timing the code, what I meant is in the real world, I don't think there are programs where this will be an issue because if they are thrashing their caches too much, they won't be bottlenecked on trig. The advantage of table based functions is that they are really fast if you are calling a lot of them at once, but that's also the only case where they need to be fast. If only 1/10000 instructions is trig, it's OK if the trig is a little slower.
- gpderetta 5y agoThe trig call might just be a small component of a piece of cide that is called very often and wants the cache for its own needs. I think that the grandparent concerns are very legitimate.