Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve JSON serialization performance on Linux #718
This change improves the performance of serializing objects to a Data, by using String concatenation to build the result, and then convert to a Data once. This change was developed by @shmuelk and myself.
We may want to revisit this in the future as the performance of appending to Data improves.
Note, we initially used
I've provided a microbenchmark to demonstrate the effect of these changes:
The above results were collected on Ubuntu 16.04. I obtained similar results on OS X.