OoT-Randomizer icon indicating copy to clipboard operation
OoT-Randomizer copied to clipboard

Change the settings string to base32768 encoding

Open blackoutroulette opened this issue 2 years ago • 2 comments

This a proposal to change the encoding of the settings-string from Base32 to Base32768 to reduce the length of big settings-strings as discussed in the discord channel #dev-bug-reports

Comparison of different encodings: Bits used: 9120 Base32 length: 1824 Base64 length: 1520 Zlib Base64 length: 1536 Ascii85 length: 1425 Base32768 length: 608

Base32768 which uses unicode, encodes 15bits into one character.

blackoutroulette avatar Oct 09 '23 19:10 blackoutroulette

Also needs several tests to confirm things don't get messy on GET requests (url encoding), server replies as text and when internally passed to python as a CLI option (which uses node's spawn library)

dragonbane0 avatar Oct 09 '23 19:10 dragonbane0

@TreZc0 @dragonbane0 So do you guys think this is a good change, or we should consider other options?

cjohnson57 avatar Nov 13 '23 23:11 cjohnson57