5 ms·
It’s a FreeBSD derivative: https://opensource.apple.com/source/text_cmds/text_cmds-99/wc/wc.c.auto.html https://opensource.apple.com/source/text_cmds/text_cmds-
by saagarjha 7y ago
It’s a FreeBSD derivative: https://opensource.apple.com/source/text_cmds/text_cmds-99/wc/wc.c.auto.html https://opensource.apple.com/source/text_cmds/text_cmds-99/w...
- imglorp 7y agoLooks like they have the same problem. They're using LC_CTYPE to hint mbrtowc(). In fact, if you web search "mbrtowc slow" you'll get a bunch of hits about "Why is wc so slow"!! :-)