KirkMcDonald / kirkmcdonald.github.io

Simple web-based calculator for the game Factorio.
Apache License 2.0
595 stars 150 forks source link

Shorten URL fragments #13

Closed KirkMcDonald closed 7 years ago

KirkMcDonald commented 7 years ago

The URL fragments can quickly become unwieldy when there are many end-products or modules in use. Find a way to shorten them.

The brute force solution would be to compress and base64-encode the existing string. It may also be possible to find a more compact representation without resorting to that.

KirkMcDonald commented 7 years ago

Partial progress: Became more aggressive about dropping settings from the fragment which are still set to their default value.

KirkMcDonald commented 7 years ago

More partial progress: The URL fragment now uses shortened module names.

KirkMcDonald commented 7 years ago

As of 328151a304f4e947b75d694474982fbb21d21636, it will now deflate+base64 long fragments.