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

delta compression #18

Merged
merged 2 commits into from
Mar 8, 2016
Merged

delta compression #18

merged 2 commits into from
Mar 8, 2016

Conversation

fippo
Copy link
Owner

@fippo fippo commented Mar 7, 2016

reduces the amount of data sent greatly, see https://jsfiddle.net/tozmnc8x/2/

@fippo
Copy link
Owner Author

fippo commented Mar 7, 2016

note that this changes the method name from getStats to getstats so we can implement the delta reconstruction on the server side.

@ggarber
Copy link
Contributor

ggarber commented Mar 8, 2016

I added LZString to your example an it went from 653 bytes to 226. And that without being able to reuse dictionaries across messages:
https://jsfiddle.net/45uupr9y/

Summary: I think we can/should compress better but this looks like a good starting point, so feel free to merge. Code LGTM.

fippo added a commit that referenced this pull request Mar 8, 2016
@fippo fippo merged commit 28a3642 into master Mar 8, 2016
@fippo fippo mentioned this pull request Mar 8, 2016
@ggarber ggarber deleted the deltaCompression branch May 4, 2016 09:43
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

Successfully merging this pull request may close these issues.

None yet

2 participants