Client-side Snappy Compression

133 views
Skip to first unread message

Joran Greef

unread,
Nov 25, 2011, 11:52:06 AM11/25/11
to chromiu...@chromium.org
Would it be possible to expose native Snappy deflate/inflate to JS in Chrome and WebKit? And a slow JS implementation of Snappy for any other browsers?

I have an experimental multi-user collaborative app that's syncing about 700 MB of data at the moment. I'm moving the syncing infrastructure over to WebSockets and from a text protocol to binary all the way down with efficient encodings. The last hurdle is compression.

Paul Kinlan

unread,
Nov 25, 2011, 12:01:25 PM11/25/11
to chromiu...@chromium.org
Have you thought of moving the compression out on to a worker thread?
It won't speed the app up but can help make your app more responive.

Alternatively, you could implement Snappy with support for NaCL and
embed that in your app to see if building it in to the browser would
gain much in the way of performance.

P

> --
> You received this message because you are subscribed to the Google Groups
> "Chromium HTML5" group.
> To view this discussion on the web visit
> https://groups.google.com/a/chromium.org/d/msg/chromium-html5/-/lhl4gEvAADIJ.
> To post to this group, send email to chromiu...@chromium.org.
> To unsubscribe from this group, send email to
> chromium-html...@chromium.org.
> For more options, visit this group at
> http://groups.google.com/a/chromium.org/group/chromium-html5/?hl=en.
>

--
Paul Kinlan
Developer Advocate @ Google for Chrome and HTML5
G+: http://plus.ly/paul.kinlan
t: +447730517944
tw: @Paul_Kinlan
LinkedIn: http://uk.linkedin.com/in/paulkinlan
Blog: http://paul.kinlan.me
Skype: paul.kinlan

Joran Greef

unread,
Nov 27, 2011, 5:04:56 AM11/27/11
to chromiu...@chromium.org
Do you know of a JS implementation of Snappy? I would like to skip NaCL.
Reply all
Reply to author
Forward
0 new messages