Alternatives to rencode

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

Alternatives to rencode

Post by teal77 »

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.
Post Reply