python - serialized json size is much more than pickled or original dictionary -


i want send python dictionary through network sockets. used ujson , json dumping dictionary result size original dictionary.

original dictionary size around 1mb json size around 6mb , pickled result around 1mb

i used asizeof pympler , builtin len function getting size of results.

note dictionary contains binary data encoded base64 converting text data.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -