Easton Man's Channel
07:48 · Mar 11, 2023 · Sat
Daniel Lemire's blog
Trimming spaces from strings faster with SVE on an Amazon Graviton 3 processor
Telegraph
|
source
Telegraph
Trimming spaces from strings faster with SVE on an Amazon Gr…
Programmers sometimes need to trim, or remove, characters, such as spaces from strings. It might be a surprising expensive task. In C, the following function is efficient: size_t trimspaces(const char *s, size_t len, char *out) { char * init_out{out}; for(size_t…
Home
Powered by
BroadcastChannel
&
Sepia