-
Notifications
You must be signed in to change notification settings - Fork 20
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
Implement valuable-json #40
base: master
Are you sure you want to change the base?
Conversation
Currently, this is almost the same as the JSON serializer example that I previously wrote. Hopefully, I can get the rest of the implementation work done over the weekend and into next week. |
Looks good to me 👍 |
This is now ready for review. |
Hey! 👋 I've got some simple benchmarks over in The benchmark using On
On
I've pushed my local changes with some I haven't dug into the code for |
Thanks @KodrAus! That benchmark is very useful. It seems that one of the problems is that the Before (2374aa8):
After (07a320c):
However, it's still much slower than 2665f14. And, escaping seems to account for around 40% of the total. The following are the results when escaping is disabled (f7e335c).
Also, the following two changes will also improve performance:
One of the rest of the problems is that the style options are checked frequently. Removing them will look like the following:
|
No description provided.