Re: [PATCH] wip: change ISSPACE to use ascii whitespace check.

Alejandro Colomar via Mutt-dev <[email protected]>
Newsgroups gmane.mail.mutt.devel
Message-ID <aZeGabzZUpS4fT4B@devuan>
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>
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEES7Jt9u9GbmlWADAi64mZXMKQwqkFAmmXhxwACgkQ64mZXMKQ
wqkWShAAtNRaPo3HD3k6zKDAPSdpmDcLe28+Z1G1D9gnr0Ep/NeHzj0BfCW+5qVl
ZHocj+I/u/FMAisxq96MtzDYbvCV/ak7dZIJ2gPqTc7H/BbNpP0aChkCQUnOX10o
qq2gvXutRVMeQakXeLYoB5TpFPZyJqmxq0mTC9uF9jCe+DaAqAEw9xEYwfhJ9pN3
PctulXGMgX0M7saskBUwH9ft0Zm1O4+t+3I+HGrHWd/WssoHMFAOF2hWnq2iB5Kz
DGFpt/5hMZqWmfuIB9nNkQetP0khmzCfAl1oHi1VQzQUwAv2ghONcB5dr5CRIEbx
XNt4UyIYk+0HiQouqIozUOy/gYff3kuXPus5ISpyGoBg2ymIoQxuJQRArC6M+N3l
Gy9qn3vLA9NAWJtgik9a0WDHtWDNgPHQDZaDyqxb5fb001Pysva9oOgBC8AW8pGv
V0numfvzw7HUranCbxGWY67Cn39ZUcwoKanpRiySgDm21nJq8YeSilcp9/V2ZQPp
Qp0cZN2/Wsp5CbBlMCpZLOueuYhlq86nrAj/5QXnW48UOMCimzeitoB/us2Bgn7P
JkzAVNVxpHgFGlAckYZhmLFhfPi8DWDfN8AGc+dgGue+o9PF01wD7+CdwZ2bzEsi
zcN6x3GktOVUNTAsFR01YBLfYuW+QXl/8+1+ToGpUVd1RbZf96Y=
=boZv
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.