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

c# - ItextSharp font color issue in ver 5.5.4+ -

jquery - Multiple issues with pushstate: history, loading, calling functions -

ios - retrievePeripherals deprecated in IOS7 how to substitude it with retrievePeripheralsWithIdentifiers -