Re:Destroying C with 20 lines of Haskell: wc
by hnlmorg on Tuesday February 04, 2020 @09:27AM
(#22235839)
He's not handling unicode and it's been well demonstrated in the past that unicode handling adds a lot to computation time in tests like these (it often comes up in grep benchmarks too).
I'd be interested to see the same tests but with a non-unicode local set, IIRC:
LC_ALL=C
I'd wager the C version would perform much better in that test.
I'd be interested to see the same tests but with a non-unicode local set, IIRC:
I'd wager the C version would perform much better in that test.