GitHub - robertdavidgraham/wc2: Investigates optimizing 'wc', the Unix word count program
wc2 - asynchronous state machine parsing
There have been multiple articles lately implementing the
classic wc program in various programming languages, to
"prove" their favorite language can be "just as fast" as C.
This project does something different.
Instead of a different language it uses a different algorithm.
The new algorithm is significantly faster -- implementing in a
slow language like JavaScript is still faster than the original
wc program written in C.
The algorithm is known as an "a...
Read more at github.com