Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added beautify function #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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.

None yet

2 participants