News for hackers. Stuff that matters.
Re:Destroying C with 20 lines of Haskell: wc by jstimpfle on Tuesday February 04, 2020 @08:40AM (#22235359)
Do you get a speed-up if you use getc_unlocked() instead of getc()? And if you write your own isspace()? As far as I know, isspace() is locale sensitive.
Re:Destroying C with 20 lines of Haskell: wc by sauerbraten on Tuesday February 04, 2020 @09:04AM (#22235588)
isspace is defined as a macro at the top of the file, and it's definitely not locale sensitive ;)