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

Improve event source diff sizes #75

Open
TonyGermaneri opened this issue Jun 11, 2020 · 0 comments
Open

Improve event source diff sizes #75

TonyGermaneri opened this issue Jun 11, 2020 · 0 comments

Comments

@TonyGermaneri
Copy link
Contributor

Two things can be done to improve diff sizes:

  1. Don't update the version field of every vector, just the ones that have changed. Used diffing of each vector to detect which have changed. This occurs on the client for localStorage provider, and on the server for the WSS provider.

  2. Change code updates to AST changes. This requires converting the code on the snapshots to AST prior to diff calculations. This would need to happen on the client and server. This would also allow multiple people to work on the same code at the same time.

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