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 of GUID's #7

Closed
mattfysh opened this issue Jun 6, 2011 · 1 comment
Closed

Use of GUID's #7

mattfysh opened this issue Jun 6, 2011 · 1 comment

Comments

@mattfysh
Copy link

mattfysh commented Jun 6, 2011

The size of models stored in local storage rapidly increases when creating many models - would it be better to remove the GUID function and maintain an incremental counter when assigning new ID's?

@jeromegn
Copy link
Owner

I guess we could keep a counter stored somewhere.

As I understand it though, it would only shave off a few bytes per entry.

Truth be told, localStorage is not useful for large amounts of data. A better alternative would probably be IndexedDB. I haven't dug deep enough in those.

If you try it out and it yields significant space savings, then for sure supply a pull request :)

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

2 participants