[Feature Request] Save compression
hyoretsu opened this issue · 1 comments
hyoretsu commented
Maybe consider adding a string compression lib when saving/loading, it could do much good to some mods. This unholy save of mine
snip
Mi4wMzF8fDE2MTA2NzA4NDE1OTU7MTYxMDMzMDExODc4MjsxNjEwNzUyMzUyNDcwO2tpdHR5IHNheXNvcGVuc2VzYW1lO3l0c21rfDExMTExMTAxMTAwMTAxMTAwMTAxMHw1Ljc5MjU3NjYzODIwMDEzZSs1MTs0Ljc4ODIyNjIyMjUxNzQ0OGUrNTM7NzswOzMzNzQ0NDgwMDAwMDA2Ny44OzE7MDswOzcuMDAwMDAwMDAwMDAwMDM3ZSs1MTszOzE7MDswOy0xOzE7MDsxLjI3MjMzNjAxNjY3NjI3MmUrNDM7MTE7MDswOy0xOzA7OzEuMjI0NzI1MzkxMjE3MzY3NWUrNDQ7MTE7MTkxMjkzMTE4Mjc3MjM7MTkwNjI2NDUxNjEwNTc7NjY2NjY2NjY2NjY7MDswOy0xOy0xOy0xOy0xOy0xOzA7MDswOzA7NTA7MDswOzU3OzExMDY7MTYxMDczMjQ3NTg1ODswOzM7OzQxOzA7MDs0LjA3NjIzMzEwMzc4NjkwMmUrNDA7fDU2NSw1NjUsNi43ODIyOTI1Nzc0MDY4NDllKzQyLDAsLDAsNTY1OzcwNSw3MDUsNC4xMDQyNjQxODc0ODk0NjJlKzQyLDExLCwwLDcwNTs1MjQsNTI0LDEuMjMzOTc0NjI2NjY2NzYxNmUrMzksMTAsMTYxMDc1MjUyNTkzNDowOjE2MTA2NzA4NDE2Nzk6MDowOjA6MDowOjE2MTA2NzA4NDE2Nzk6IDEwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAgMDowOjE0OjM4OjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDoxNDoyMzow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4Mjc1MzU0NjU1ZSs0MSwxMCwsMCwzMzE7MzExLDMxMSw4LjgxNjMzMzc4MDQ1OTE2ZSs0MSwxMCwsMCwzMTE7MjkyLDI5MiwxLjg0MDg1MTY0NjM2NDg1NjZlKzQyLDEwLCwwLDI5MjsxODIsMTgyLDIuMDUyOTg5NTEzNTAyNzE3N2UrNDIsMTAsLDAsMTgyOzIzNSwyMzUsMy41MzU0MjAxNTYxMjMxNGUrNDIsMTAsLDAsMjM1OzIwNywyMDcsMS43MjM0Nzk1ODI1NTQ3NDI0ZSs0MywxMCwsMCwyMDc7fDExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMDAwMDExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMDExMTExMTExMDExMTExMTEwMDEwMTEwMDAwMTExMTExMDExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMDAxMTExMTExMTExMTExMTExMTEwMDAwMDAwMDAwMDAwMDExMDAxMTAwMTEwMDAwMTEwMDExMTEwMDAwMTEwMDAwMDAxMTAwMDAwMDAwMDAxMTAwMDAwMDAwMDAwMDAwMDAwMDExMTExMTExMTExMTExMTExMDEwMTAxMDAwMTExMTExMTEwMDExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMDAxMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAxMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTAwMTAwMDEwMTExMTAwMDAxMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTAxMTExMTExMTAwMDAxMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEwMDAwMDAxMTExMTExMTExMTExMTExMTExMTExMTExMTEwMTExMTExMTExMTExMTExMTExMTExMTExMDAxMTExMTExMTExMTExMTExMTExMTExMTExMTAwMTExMTExMTExMTExMTExMTExMTExMDExMTExMTExMTExMTAwMDAwMDExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTAwMDAwMDExMTExMTExMTExMTExMTExMTExMDAwMDAwMDAxMTExMTEwMDExMTExMTExMTExMTExMTExMTExMTExMTExMDAxMTExMDAwMDAwMDAwMDAwMTExMTExMTExMTExMTExMTAwMDAwMDAwMDAxMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMDExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMDAwMDAwMDAxMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTAwMDAwMDExMTEwMDExMDAwMDAwMDAxMTAwMTEwMDExMTExMTExMDAwMDAwMTEwMDAwMTExMTAwMDAwMDAwMTExMTExMTExMDAwMDAwMDExMDAxMTExMDAxMTAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAxMTExMTExMTExMTExMTExMDAwMDAwMDAwMDExMTExMTAwMTExMTAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDExMTExMTExMDAwMDAwMDAxMTExMTExMXwxMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEwMTExMTExMTExMTExMTExMTExMTExMTExMTExMDAwMTAxMTExMDAwMTAxMTEwMDExMTExMTExMTEwMDAwMTExMTExMDAxMDAxMDAwMTExMTExMTExMTExMTExMTEwMTExMTExMT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JTiI6NTAsIkZJUkVXT1JLX0JSSUdIVE5FU1NfTUFYIjo3MCwiRklSRVdPUktfU1BFRUQiOjEwLCJGSVJFV09SS19UUkFJTF9MRU5HVEgiOjMsIlNUQVJfQlJJR0hUTkVTU19NSU4iOjUwLCJTVEFSX0JSSUdIVE5FU1NfTUFYIjo4MCwiU1RBUl9DT1VOVCI6MTAwLCJTVEFSX0RFQ0FZX01JTiI6MC4wMTUsIlNUQVJfREVDQVlfTUFYIjowLjAzLCJTVEFSX0ZSSUNUSU9OIjowLjksIlNUQVJfR1JBVklUWSI6MS40LCJTVEFSX0hVRV9WQVJJQU5DRSI6MjAsIlNUQVJfVFJBTlNQQVJFTkNZIjoxLCJTVEFSX1NQRUVEX01JTiI6MiwiU1RBUl9TUEVFRF9NQVgiOjIwLCJTVEFSX1RSQUlMX0xFTkdUSCI6NSwiQ0FOVkFTX0NMRUFOVVBfQUxQSEEiOjAuMiwiSFVFX1NURVBfSU5DUkVBU0UiOjEsIlRJQ0tTX1BFUl9GSVJFV09SS19NSU4iOjUsIlNUUk9LRV9XSURUSCI6MSwiR0xPQkFMX0NPTVBPU0lURV9PUEVSQVRJT04iOiJkZWZhdWx0In0sInJvY2tldHNQb3BwZWQiOjB9O0luc3VnYXIgVHJhZGluZzp7InZlcnNpb24iOiIxLjMuMyIsInNldHRpbmdzIjp7InF1YW50aWxlc1RvRGlzcGxheSI6WzAuMjUsMC41LDAuNzVdfX07%21END%21Just gotta import compress()/decompress() and add it before returning
JSON.stringify()
and after using JSON.parse()
. Adds ~4KB overall in final minified bundle.Demo: https://pieroxy.net/blog/pages/lz-string/demo.html
TheGLander commented
Just added this to the 0.3 branch, fixed by 8df958d, thanks for the suggestion!