Skip to content

Conversation

@Zash
Copy link

@Zash Zash commented Jul 28, 2021

  • Gets rid of table allocation per output line.
  • Explicit arguments and concat.
  • Fixed CSV escaping

Zash added 2 commits July 28, 2021 21:02
table.concat({...}, "\n") creates a table for each line, which becomes
immediate garbage. Handy when you don't know how many arguments will be
used, but here the number of arguments is known.  Suboptimal to allocate
more memory when this thing is usually run when a lot of memory is
already used.
Previously simple values like '1' were escaped into '"""1"""' which
seems wrong.

Also gets rid of the table allocation for each line, see previous commit
for some words on that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant