Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use compression when store the scripts instead of saving the base64 string #86

Open
xcv58 opened this issue Nov 22, 2019 · 0 comments
Open

Comments

@xcv58
Copy link
Owner

xcv58 commented Nov 22, 2019

As mentioned here: #32 (comment)

We can use compress/decompress to save space.

I did a simple test via LZ-UTF8. It can save more than half-space.
image

We need to:

  1. Find the best fit compress/decompress library that can compress/decompress string around ~4 KB fast enough. (We need to do compress every time user typing)
  2. Add helper functions to deal with the storage for base64 and the new compression approach and add the ability to extend for other storage options in the future.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant