Skip to content

Conversation

@gborghesan
Copy link

As I need to have a human-readable file, I added a function to insert newlines and tabs to an already encoded json string (what you explicitly excluded in your documentation).

@aryajur
Copy link

aryajur commented Jul 28, 2020

Hi,
It would be much more efficient to compile the string bits into a table array and then use table.concat in the end rather than concatenating the strings at each step. It makes a huge difference in terms of speed when the size of data becomes large. See https://github.com/aryajur/tableUtils/blob/master/src/tableUtils.lua#L114.

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.

2 participants