Update json-c from 0.13.1 to 0.15 #1605
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
%.17g
but we've had it at%.16g
so it has to be edited (due to backwards compatibility reasons) in the source code atjson_object.c:1028
(issue: https://bugs.mtasa.com/view.php?id=8853) (commit: 4cc6fda)Speed comparison
test_json.zip
Results (250,000 toJSON + fromJSON executions, 20 times)
Validation
To help validate the integrity of the update I have created the following bash script that diffs between my PR branch and the official package provided from the json-c repository.
Past json-c updates in MTA
Copy of json-c changelogs
0.15 (up to commit 870965e, 2020/07/26)
0.14 (up to commit 9ed00a6, 2020/04/14)