wc2 (textproc/wc2) Updated: 5 months ago Add to my watchlist
Investigates optimizing 'wc', the Unix word count programThere 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 "asynchronous state-machine parser". It's a technique for parsing that you don't learn in college. It's more efficient, but more importantly, it's more scalable. That's why your browser uses a state-machine to parse GIFs, and most web servers use state-machiens to parse incoming HTTP requests.
Version: 20221102 License: unknown GitHubMaintainers | herbygillot |
Categories | textproc |
Homepage | https://github.com/robertdavidgraham/wc2 |
Platforms | darwin |
Variants |
|
"wc2" depends on
build (1)
Ports that depend on "wc2"
No ports
Port Health:
Loading Port Health