Skip to content

Improve encoding performance#2

Open
bagarey wants to merge 2 commits into
Overbryd:masterfrom
bagarey:master
Open

Improve encoding performance#2
bagarey wants to merge 2 commits into
Overbryd:masterfrom
bagarey:master

Conversation

@bagarey
Copy link
Copy Markdown

@bagarey bagarey commented Sep 10, 2019

When working with a big XML file (13MB output, 10,000s of elements) we found it took 40s to encode it only. We found a way to optimize binary concatenation:

https://stackoverflow.com/questions/46095870/whats-the-best-way-to-build-long-strings-in-elixir

With the changes below the XML file encodes in 1.5s on our machines. Would you consider merging our changes back into your project?

Thank you

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