byline
Fast line by line parsing of files in node.js. Over 3x the speed of byline module.
Installation
npm install quickline --save
Usage
byLine = byLine var linecount = 0; { ifx0 != "#" linecount ++;} { console;} var fs = var str = fs
Speed
byLine module speed:
time nodejs tests/test-byline.js
1022112
real 0m0.782s
user 0m0.760s
sys 0m0.060s
quickline module speed:
time nodejs tests/test1.js
1022112
real 0m0.221s
user 0m0.220s
sys 0m0.020s
UTF-8 input files
If your input file is encoded as UTF-8, you can use the following alternative function (which can be about 10% slower):
byLineUTF8 = byLineUTF8
API reference
;
;
License
MIT