News for hackers. Stuff that matters.
Re:Base58 by a1369209993 on Thursday November 08, 2018 @09:46PM (#18412011)
> Many compilers even expand the code inline to generate fix size divides into mult and shift.

Specificly, u8 divmod 58 can be reduced to a u8->u16 multiply, a right shift, and three conditional subtractions; that's not great, but on a modern CPU it's a afterthought compared to the quadratic loop over the input size.

There are no comments on this comment yet.