3 ms·
If I would have to guess it would be codecs.
by metaltyphoon 4y ago
If I would have to guess it would be codecs.
- burntsushi 4y agoWhat do codecs have to do with grep?
- int_19h 4y agogrep respects LC_CTYPE, so it has to handle text encoding (or rely on something else that does, like libc or iconv). However, by the same token, we might as well count any assembly in the kernel that gets executed due to some syscall from grep.
- burntsushi 4y agoThose are locales. I've never heard them referred to as "codecs." In any case, I'd still like to see a grep whose inner loop is written in Assembly. :-)
- int_19h 4y ago"en_US.UTF-8" is a locale. The "UTF-8" part is the encoding of that locale. Codec would be whatever piece of code parses the encoding.
- xxs 4y ago>in the kernel that gets executed due to some syscall from grep That won't be considered 'inner loop'