4 ms·
I found unpickling a lot slower than json loading.
by ohiovr 4y ago
I found unpickling a lot slower than json loading.
- LtWorf 4y agoBut then you have to check that the "list" is really a list, that the objects do have the keys, that the strings are strings. This should be factored in the cost, and it wasn't in the benchmark.
- nomel 4y agoI've found it to be much faster, with large amounts of data, like numpy arrays. And, some things aren't possible to convert to JSON, without writing a bunch of code to do the serialization/deserialization, which often makes things slow again.