https://github.com/stulzq/go-linecount
Fast text file line count tool.
https://github.com/stulzq/go-linecount
fastest line-counter
Last synced: about 1 year ago
JSON representation
Fast text file line count tool.
- Host: GitHub
- URL: https://github.com/stulzq/go-linecount
- Owner: stulzq
- License: apache-2.0
- Created: 2020-12-10T02:57:15.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-22T08:29:03.000Z (over 5 years ago)
- Last Synced: 2025-03-01T07:51:19.545Z (over 1 year ago)
- Topics: fastest, line-counter
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-linecount
**Fast** text file line count tool, like linux `wc -l`.
## Performance
Azure VM 4 Core 16GB Mem
OS: Ubuntu 18.04
Text file size: 11GB
Text file lines: 500 million
First spent time: 34 sec
Secondly spent time: 11 sec
## Usage
Download: https://github.com/stulzq/go-linecount/releases
Command: `glc -f `
Enjoy!
## Thanks
https://github.com/edsrzf/mmap-go
https://github.com/withlin