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

Idea: Reduce localStorage requirement #129

Open
cdot opened this issue Mar 11, 2024 · 0 comments
Open

Idea: Reduce localStorage requirement #129

cdot opened this issue Mar 11, 2024 · 0 comments

Comments

@cdot
Copy link
Owner

cdot commented Mar 11, 2024

At the moment we use CBOR for encoding a game for storage. A typical Scrabble game stored this way is between 2K and 40K in size. This is generally not a problem for a filestore, as used in the client/server model, but for standalone the LocalStorage capacity is limited in some browsers so we want to encode games as small as possible. The maximum for any specific browser can be found using http://dev-test.nemikor.com/web-storage/support-test/ with 5MB being a typical maximum. Worst case of 40K per game, that would mean a maximum of 125 games could be held. That's really not a big issue, though working out how to clear down local storage may be an issue for some users.

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