Hi Steffen,

On 2026-02-19T22:15:29+0100, Steffen Nurpmeso wrote:
> Crystal Kolipe via Mutt-dev wrote in
>  <[email protected]>:
>  |On Thu, Feb 19, 2026 at 02:32:45PM +0100, Alejandro Colomar via Mutt-dev \
>  |wrote:
> 
> I think "the best" is a table lookup.
> I use the below script to create a lookup table, it is easily
> adaptable (it is 128 bytes + alignment, and it could be like this
> ASM looks even better, all in all.

By "best" are you optimizing for performance or readability?  I prefer
readability any day.  We're not libc nor cc(1); we don't need to
have the absolute best performance, or we'd be writing assembly (this is
what glibc does, indeed).  We can get 80% of the juice with trivial
one-liners that get optimized by the compiler and libc.


Have a lovely night!
Alex

-- 
<https://www.alejandro-colomar.es>

Attachment: signature.asc
Description: PGP signature

Reply via email to