Alternatives to rencode
Posted: Tue Oct 13, 2020 6:23 am
I tested some alternate encoding formats with deluge RPC payloads.
Tests were done with the response objects from deluge-client python client.
Results.
Conclusions: zstd compression is better in all cases. json + zstd beats rencode + zlib. cbor + zstd matches rencode + zstd, while being a more widely adopted standard.
Tests were done with the response objects from deluge-client python client.
Results.
Code: Select all
get_torrents_status {} [] get_torrent_status ['files']
rencode 150376 77161
zlib rencode 10530 35085
zstd rencode 9602 31982
msgpack 157043 80621
zlib msgpack 10689 35124
zstd msgpack 9671 32156
cbor 150649 76724
zlib cbor 10511 35054
zstd cbor 9598 32045
json 210926 104474
zlib json 13035 35459
zstd json 9995 32475