A Linux kernelhez javasolták a memchr funkció implementálását, amely akár 4-szer gyorsabban működik
A Linux kernel patch set has been proposed that optimizes the implementation of the memchr() function, used for character search in arrays. Unlike the old version, which relied on byte-by-byte comparison, the new implementation takes full advantage of 64-bit and 32-bit CPU registers. Instead of bytes, it compares using machine words, allowing for simultaneous comparisons of […]
