Skip to content

Commit

Permalink
tools: disable history for readline.Interface
Browse files Browse the repository at this point in the history
Disable history for `readline.Interface` used in Unicode tables
generator thus improving overall performance and memory usage.

PR-URL: metarhia/jstp#259
Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
  • Loading branch information
belochub committed Jul 21, 2018
1 parent d0826d3 commit 602e19c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/make-unicode-tables.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ let idContinueTotalCount = 0;
const lineRegex = /^([0-9A-F]{4,6})(?:\.\.([0-9A-F]{4,6}))? *; (\w+) #.*$/;

http.get(UCD_LINK, (res) => {
const linereader = readline.createInterface({ input: res });
const linereader = readline.createInterface({ input: res, historySize: 0 });
linereader.on('line', (line) => {
const values = lineRegex.exec(line);
if (values !== null) {
Expand Down

0 comments on commit 602e19c

Please sign in to comment.