Hacker News new | ask | show | jobs
by ponzi 5612 days ago
> I'd say most of this stuff is written for people who wouldn't really learn much from a disassembly.

Even so, I find that a lot of the advice is misleading. As mentioned elsewhere, the reason modulus is slow is not that you can write it three arithmetic operations, but because division is slow. And especiall any kind of 32bit arithmetic on 8bit and 16bit processors. Even though he used narrower integer types, he did not explain why that was better.