Math is faster than lookup table RAM access on modern processors, but the only REAL way to know which is faster is to benchmark both methods (especially on the kindles). We need something that works on all eink kindle models that we plan to support, and that is INCLUDED in my (mostly branch-free) eink dithering formulas (which is why they are a bit complex). We need to keep cache access in mind to maximize speed and minimize battery consumption...
|