fast-code icon indicating copy to clipboard operation
fast-code copied to clipboard

Significant space waste when encoding hex-string data.

Open Artoria2e5 opened this issue 9 years ago • 0 comments

Info-hashes and ed2k hashes are merely hex-string representations of binary data, and ~50% space is wasted when you ignore this point and encode them directly as if you are encoding text.

More specific support for these all-uppercase hex-blocks should be added.

For ed2k file links there is also a filesize field which can be considered as an uInt64 (assuming double or Number should also work fairly well).

Artoria2e5 avatar Jan 07 '16 13:01 Artoria2e5