Skip to content

CallMeAlphabet/fastwc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fastwc

fastwc — a fast wc rewrite

Table of Contents

Quick Start

# Install
cargo install --git https://github.com/CallMeAlphabet/fastwc

Note: Make sure ~/.cargo/bin is in your PATH. It's added automatically by rustup, but if fastwc isn't found, add this to your shell config file:

# If you use Bash:
export PATH="$HOME/.cargo/bin:$PATH"

# If you use Fish:
fish_add_path $HOME/.cargo/bin

# If you use Zsh:
export PATH="$PATH:$HOME/.cargo/bin"
# Use it!
fastwc /path/to/file

Benchmarks

Benchmark 1: 1.5 GiB file

Tool Time Speed vs fastwc
fastwc 0.16s 1x (baseline)
wc 23s 141.6x slower

The gains in speed are higher the bigger the file.

Uninstall

cargo uninstall fastwc

Usage

fastwc does not add any additional flags to the original wc. All flags are the same and behave the same. The --help message was changed though.

Testing Conditions

https://gist.github.com/CallMeAlphabet/4b7022c4b1a8849e6943526de6a23582

About

fastwc — a fast wc rewrite

Resources

License

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages