4 ms·
Not hugely convincing to put a toy model up against a micro benchmark and claim the toy model proves the micro benchmark wrong. The correct way to compare the
by jameshart 3y ago
Not hugely convincing to put a toy model up against a micro benchmark and claim the toy model proves the micro benchmark wrong.
The correct way to compare these approaches is with real code.
- pvorb 3y agoThe correct way to compare these two approaches is to measure the difference on your individual program and not rely on benchmarks that measure different programs. But I also understand that you can't do that for every decision you need to make, so at least this article gives a hint that lookup tables are something that might be worth measuring.
- vardump 3y agoMost of the time the solution that pollutes L1 caches more is going to lose in real life use. LUTs do that a lot, but of course ballooned code can hit L1C cache badly as well. You can compute a ton on a modern CPU during what a memory access would take.