memchr is a heavily optimized function, and will be faster than doing it with a naïve loop. To make it work with ctfe yet keep the memchr, use:
```
if (__ctfe)
    ... memchr ...
else
    ... loop ...
```