Skip to content

Use compression when encoding state #41

Description

@haggen

I came across this package json-url that focuses on encoding JSON objects to URL compatible strings and one of the key points is that it compresses the final string using LWZ.

On a cursory test it managed to reduce an encoded state from 5490 to 3536 bytes (~1.5x). You can check it out: https://codesandbox.io/s/musing-meadow-iwu4ci?file=/src/index.js

If you find that's something worth pursuing I'd be happy to send a PR your way, just let me know.

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions