-
Notifications
You must be signed in to change notification settings - Fork 19
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
Issue 1 convert to polyfill #12
base: master
Are you sure you want to change the base?
Issue 1 convert to polyfill #12
Conversation
A lot of good stuff here. I would prefer that Reliable inherit from PeerJS's ported version of node.js EventEmitter (which is a dependency on PeerJS already) rather than have its own Event system. |
Also the fix for #11 looks like it will also improve performance and close #10. I never looked too deeply into it, so it's great that it's such a simple fix. With this the exponentially decaying sliding window currently used to ensure that images get through at all can also be removed and transfer times will be faster in general. |
"Si quieres viajar alrededor del mundo y ser invitado a hablar en un monton |
"Si quieres viajar alrededor del mundo y ser invitado a hablar en un monton |
On further inspection the slowness is not so simple. Will have to rewrite some stuff as mentioned in #10. Whether this is worth the work or not is questionable though, because Chrome is making fast progress with reliable/binary: https://code.google.com/p/webrtc/issues/detail?id=1408 |
I think so. The only (personal) points I see to work on this are to add 2013/5/3 Michelle Bu [email protected]
"Si quieres viajar alrededor del mundo y ser invitado a hablar en un monton |
Just fixed a bunch of stuff. Reliable is now pretty fast, as seen on chat.html. |
I'll take a look.
|
Conflicts: dist/reliable.js dist/reliable.min.js lib/reliable.js
I have merged your improvements with my branch and yes, it's seems to be I have been checking the diferences ( 2013/5/3 [email protected] [email protected]
"Si quieres viajar alrededor del mundo y ser invitado a hablar en un monton |
Mmm I haven't looked at your code, but are you using the |
For reference, I can do ~1.6MB in 6 seconds and about 1 second for ~50KB files. |
Yes, I'm using the higherBandwidthSDP inside my DataChannel-polyfill. You if(createDataChannel && !supportReliable && Reliable)
} 2013/5/4 Michelle Bu [email protected]
"Si quieres viajar alrededor del mundo y ser invitado a hablar en un monton |
I'm doing the tests over two tabs on the same Chrome v28 instance and my 2013/5/4 [email protected] [email protected]
"Si quieres viajar alrededor del mundo y ser invitado a hablar en un monton |
I'm remembering that my code split the files in chunks of 64KB due to
|
I'm not sure I understand--Reliable chunks files for you into 500 byte pieces. |
I know that reliable have a mtu of 500 bytes to be sure that each chunk is Also, I was thinking about down my chunks size from 64kb+metadata to (yes, I'm some kinda illiterate on network programming for this topics,
|
On
|
I had it at 500 to be safe. Yes you can simply change around MTU to mess Michelle On Sat, May 4, 2013 at 6:37 PM, Jesús Leganés Combarro <
|
I know, and I have taking it in account ;-) I'll try playing with the MTU, 2013/5/5 Michelle Bu [email protected]
"Si quieres viajar alrededor del mundo y ser invitado a hablar en un monton |
Conflicts: dist/reliable.min.js
Conflicts: dist/reliable.min.js
It's not a complete re-desing, but only some tune-ups to help compatibility and improve of my DataChannel-polyfill. All the management to work as a polyfill is there (ShareIt-project/DataChannel-polyfill@bf63d0d), although would be interesting to be integrated here and make 'reliable' an independent polyfill (tell me if you like the idea and I'll do it. In fact, the code will be cleaner in both projects...).
The mayor downside is that the 'onmessage' method (now a EventListener) is having the message inside a 'data' attribute ({data: }) instead of being directly served () as the specification says.