Alternatives to rencode

Suggestions and discussion of future versions
teal77
Member
Member
Posts: 14
Joined: Sat Jul 07, 2018 11:37 am

Alternatives to rencode

Postby teal77 » 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.

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



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.

Return to “Development”

Who is online

Users browsing this forum: No registered users and 4 guests