mverleg / pyjson_tricks

Extra features for Python's JSON: comments, order, numpy, pandas, datetimes, and many more! Simple but customizable.
Other
152 stars 23 forks source link

Make json_tricks work with async/await #46

Open mverleg opened 6 years ago

mverleg commented 6 years ago

Not sure this is worthwhile, because GIL prevents any separate thread for performing well. And it's not safe to share mutable data anyway.

mverleg commented 5 years ago

I think when I originally created this, it was about offloading the encoding/decoding itself to another thread or process, and making an async interface.

I'm not sure that's worthwhile, for the reasons mentioned.

However, it would be easy to create an async wrapper for the file reading and writing, on Python versions that support it. That might be useful.