Skip to content

3.0.1

Compare
Choose a tag to compare
@ijl ijl released this 19 May 14:06
· 373 commits to master since this release

Fixed

  • orjson.dumps() raises an exception if the object to be serialized
    is not given as a positional argument. orjson.dumps({}) is intended and ok
    while orjson.dumps(obj={}) is an error. This makes it consistent with the
    documentation, help() annotation, and type annotation.
  • Fix orphan reference in exception creation that leaks memory until the
    garbage collector runs.

Changed

  • Improve serialization performance marginally by using the fastcall/vectorcall
    calling convention on python3.7 and above.
  • Reduce build time.