You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HTTP can support MessagePack headers for content type.
Numpy arrays are serialized as fast as python's pickle by MessagePack format msgspec.msgpack . However, to unpack it on the javascript side, a suitable deserialization is necessary. MessagePack is also safer than pickle, so currently pickle is not support for HTTP access, but message pack support would be great.
HTTP can support MessagePack headers for content type.
Numpy arrays are serialized as fast as python's pickle by MessagePack format
msgspec.msgpack
. However, to unpack it on the javascript side, a suitable deserialization is necessary. MessagePack is also safer than pickle, so currently pickle is not support for HTTP access, but message pack support would be great.The expected server side code is as follows:
However, a javascript library which can read this memoryview data is not known.
Any suggestions are welcome.
+----------------------------------------------------------------------------------------------------------------------+
| serializer | spectrum | spectrum 1e4 double entries | spectrum 1e5 entries | spectrum 1e6 entries |
+=====================================================================+
| JSONSerializer | 0.05121 | 0.61983 | 6.29486 | 65.279 |
+----------------------------------------------------------------------------------------------------------------------+
| PickleSerializer | 0.01586 | 0.01927 | 0.26054 | 8.31536 |
+----------------------------------------------------------------------------------------------------------------------+
| MsgpackSerializer | 0.01237 | 0.09472 | 1.13373 | 15.2071 |
+----------------------------------------------------------------------------------------------------------------------+
The text was updated successfully, but these errors were encountered: