miller/experiments/line-parser
John Kerl 0142955bd7
Fix multi-character IRS (#685)
* Fix regression-test cases using redirects

* Fix more cases

* Update CASEDIR handling on Windows

* Regression-test fixes

* More regtest iteration

* Fix read of files which lack final newline

* Fix multi-character IRS
2021-10-05 17:35:34 -04:00
..
read-string.go Fix read of files which lack final newline (#683) 2021-10-04 23:05:57 -04:00
README.txt Fix read of files which lack final newline (#683) 2021-10-04 23:05:57 -04:00
scanner.go Fix read of files which lack final newline (#683) 2021-10-04 23:05:57 -04:00
splitter.go Fix multi-character IRS (#685) 2021-10-05 17:35:34 -04:00

$ ls -l ~/tmp/huge
-rw-r--r--  1 kerl  staff  614295000 Aug 25  2020 /Users/kerl/tmp/huge

$ wc -l ~/tmp/huge
 10000000 /Users/kerl/tmp/huge

$ justtime read-string ~/tmp/huge  > /dev/null
TIME IN SECONDS 8.707 -- read-string /Users/kerl/tmp/huge
$ justtime read-string ~/tmp/huge  > /dev/null
TIME IN SECONDS 8.540 -- read-string /Users/kerl/tmp/huge
$ justtime read-string ~/tmp/huge  > /dev/null
TIME IN SECONDS 8.549 -- read-string /Users/kerl/tmp/huge

$ justtime scanner ~/tmp/huge  > /dev/null
TIME IN SECONDS 8.774 -- scanner /Users/kerl/tmp/huge
$ justtime scanner ~/tmp/huge  > /dev/null
TIME IN SECONDS 8.873 -- scanner /Users/kerl/tmp/huge
$ justtime scanner ~/tmp/huge  > /dev/null
TIME IN SECONDS 8.777 -- scanner /Users/kerl/tmp/huge