Closed gakada closed 4 years ago
We're already compressing links with the lz-string
module for new diagrams.
I see, maybe just library difference then, I used lzbase62 some time ago and it seems a bit shorter, e.g.
354
274.
I think it is good enough. Changing the compression algorithm means we need to support three ways of parsing the URL if we want to remain backward compatible..
For example, with a library like https://github.com/polygonplanet/lzbase62
b64EncodeUnicode
andb64DecodeUnicode
can be defined just asmaking URLs a bit shorter (something like 300 characters instead of 500, if I look at one example).