https://github.com/esnme/ultrajson
Revision 381f248e03c10c70eeb4d424f4b990b4c0994210 authored by Eugene Toder on 06 December 2023, 04:56:01 UTC, committed by Brénainn Woodsend on 10 December 2023, 21:11:20 UTC
Do not create a list of tuples with (converted key, value) upfront.
Instead, convert keys and fetch values during iteration.

Also, if sorting fails, preserve the original exception instead of
overwriting it with a less informative ValueError. This is the same
behavior as the standard library's json module.
1 parent eda5ecd
History
Tip revision: 381f248e03c10c70eeb4d424f4b990b4c0994210 authored by Eugene Toder on 06 December 2023, 04:56:01 UTC
Speedup dumps with sorted keys
Tip revision: 381f248
File Mode Size
.github
deps
lib
python
scripts
tests
.gitignore -rw-r--r-- 2.1 KB
.pre-commit-config.yaml -rw-r--r-- 1.1 KB
LICENSE.txt -rw-r--r-- 5.8 KB
MANIFEST.in -rw-r--r-- 25 bytes
README.md -rw-r--r-- 7.6 KB
RELEASING.md -rw-r--r-- 885 bytes
pyproject.toml -rw-r--r-- 146 bytes
setup.cfg -rw-r--r-- 973 bytes
setup.py -rw-r--r-- 1.5 KB

README.md

back to top