-
Notifications
You must be signed in to change notification settings - Fork 1
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
Nhse d32 nhskv.i17 #19
Conversation
Avoid issue when an {error, timeout} may be passed as {error, {error, timeout} - resulting in general 500 error
Did a quick experiment taking the JSON library from erlang/otp#8111. There are some issues, as for obvious reasons this is not designed to be compatible with earlier versions. With a naive implementation, and some hacks to resolve compatibility, it was slower in an encode test than thoas/mochijson2 (though probably due to the hacks). I think in this case the performance improvements of |
Having fixed my use of the json encode in the OTP PR, this now appears to be notably faster than thoas - #20 On OTP 22:
On OTP 25:
|
* Encoding use JSON library for OTP PR Uses the PR'd Json library to OTP for encoding, and passing in a bespoke override on the encode function to avoid the double-pass to convert into a map. This appears to be notably faster than mochijson2 and thoas. * Tidy-up
Focus on proposed JSON library for OTP. The riak_kv_clusteraae_fsm has also been reverted back to mochijson2. The format of leveled_tictac:export_tree isn't compatible with the OTP json library - rather than over-complicate the PR, as performance is not critical for these queries, keep the old implementation.
Without compatibility changes
Compatibility changes required for OTP 22 - 26
* Update and include quickcheck properties * Output too verbose with a collect.
Changes: