Created
July 9, 2020 12:57
-
-
Save mmomtchev/dc83ed4a204c7fae28792c85d5ec16e4 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 }); | |
(async () => { | |
console.time(__filename); | |
for await (const line of rl) { | |
parseline(line); | |
} | |
console.timeEnd(__filename); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment