Created
July 9, 2020 13:14
-
-
Save mmomtchev/b31648a05e89e2d515010d9fe9c89d0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const readline = require('readline'); | |
const parseline = require('./parseline'); | |
const rs = fs.createReadStream('allCountries.txt'); | |
const rl = readline.createInterface({ input: rs }); | |
console.time(__filename); | |
rl.on('line', (line) => { | |
parseline(line); | |
}); | |
rl.on('close', () => console.timeEnd(__filename)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment