-
Notifications
You must be signed in to change notification settings - Fork 364
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
Generalize benchmarks #532
Commits on Apr 17, 2022
-
Fix handling of surrogates on encoding
This allows surrogates anywhere in the input, compatible with the json module from the standard library. This also refactors two interfaces: - The `PyUnicode` to `char*` conversion is moved into its own function, separated from the `JSONTypeContext` handling, so it can be reused for other things in the future (e.g. indentation and separators) which don't have a type context. - Converting the `char*` output to a Python string with surrogates intact requires the string length for `PyUnicode_Decode` & Co. While `strlen` could be used, the length is already known inside the encoder, so the encoder function now also takes an extra `size_t` pointer argument to return that and no longer NUL-terminates the string. This also permits output that contains NUL bytes (even though that would be invalid JSON), e.g. if an object's `__json__` method return value were to contain them. Fixes ultrajson#156 Fixes ultrajson#447 Supersedes ultrajson#284
Configuration menu - View commit details
-
Copy full SHA for c9df712 - Browse repository at this point
Copy the full SHA c9df712View commit details
Commits on Apr 18, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 92b044d - Browse repository at this point
Copy the full SHA 92b044dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c05078 - Browse repository at this point
Copy the full SHA 5c05078View commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Fix compiler warnings Update python/objToJSON.c Co-authored-by: JustAnotherArchivist <JustAnotherArchivist@users.noreply.github.com> camelCase whitespace Update tests/test_ujson.py Co-authored-by: JustAnotherArchivist <JustAnotherArchivist@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for c71d9ab - Browse repository at this point
Copy the full SHA c71d9abView commit details -
Configuration menu - View commit details
-
Copy full SHA for d82654b - Browse repository at this point
Copy the full SHA d82654bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c68a0b - Browse repository at this point
Copy the full SHA 4c68a0bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 993b262 - Browse repository at this point
Copy the full SHA 993b262View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ae8a0b - Browse repository at this point
Copy the full SHA 4ae8a0bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 70e9085 - Browse repository at this point
Copy the full SHA 70e9085View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6861525 - Browse repository at this point
Copy the full SHA 6861525View commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for 183d863 - Browse repository at this point
Copy the full SHA 183d863View commit details -
Configuration menu - View commit details
-
Copy full SHA for fa84e27 - Browse repository at this point
Copy the full SHA fa84e27View commit details -
Configuration menu - View commit details
-
Copy full SHA for 84ca3d1 - Browse repository at this point
Copy the full SHA 84ca3d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5853a4f - Browse repository at this point
Copy the full SHA 5853a4fView commit details -
Configuration menu - View commit details
-
Copy full SHA for ed8de3c - Browse repository at this point
Copy the full SHA ed8de3cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 520f2ec - Browse repository at this point
Copy the full SHA 520f2ecView commit details
Commits on Apr 20, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 1e0885d - Browse repository at this point
Copy the full SHA 1e0885dView commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for 2cc3544 - Browse repository at this point
Copy the full SHA 2cc3544View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75895fc - Browse repository at this point
Copy the full SHA 75895fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 35bb31a - Browse repository at this point
Copy the full SHA 35bb31aView commit details -
Configuration menu - View commit details
-
Copy full SHA for cbd3019 - Browse repository at this point
Copy the full SHA cbd3019View commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for 9864596 - Browse repository at this point
Copy the full SHA 9864596View commit details
Commits on Apr 21, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 85260e6 - Browse repository at this point
Copy the full SHA 85260e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75cd254 - Browse repository at this point
Copy the full SHA 75cd254View commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for 1ccacdd - Browse repository at this point
Copy the full SHA 1ccacddView commit details