Login
From:
Daniel Lemire's blog
(Uncensored)
subscribe
Table lookups are efficient
https://lemire.me/blog/2024/10/14/table-lookups-are-efficient/
links
backlinks
Roast topics
Find topics
Find it!
When optimizing small functions, I often rely on a table lookup: I replace the actual computation with table of precomputed values. It is often surprisingly efficient.