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
Post a Comment