Hacker News new | ask | show | jobs
by dafrankenstein2 3340 days ago
an analysis can be done on that
1 comments

You're right. I don't have the resources for a full analysis but I did "shorten" three Google Maps links (IMO a good candidate for link shortening).

The compression for the three ranged between 114% and 117% of the original. E.g.:

https://www.google.ca/maps/place/Rockefeller+Center/@40.7586...

Encoded:

    k:Yr5fL7YTHQz1AlBxKJrphUT0qAgf6ouSZ3Ze1yEQCNiTlmLclpycllFbllYTkxZcnJyY1hFTE0dUfkwV5SlgdREpEKLCUxjsWlLA6xpSJFMQx7EksQx6wsJCamsYViSIvoymS01Kch1NSlhIY2JOWYtyWWNESmNIbllYTkxZclpZRt
This URI has a lot of hex sections and numbers in it, and I'd like to point out this is still 85% of the Base64 encoded version of that URI, even tho its 114% of original.

I think we could get this size down below parity by encoding the numbers and hex sections.

Thanks for the comment! If you have some ideas how to improve the compression, I invite you to please submit an issue or PR, thank you very much.