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

Reimplement uproxy-lib in Java #2095

Closed
bemasc opened this issue Nov 25, 2015 · 5 comments
Closed

Reimplement uproxy-lib in Java #2095

bemasc opened this issue Nov 25, 2015 · 5 comments

Comments

@bemasc
Copy link
Contributor

bemasc commented Nov 25, 2015

Passing every TCP byte through JS is bad for performance. On desktop, this is tolerable, but on mobile it is not (especially on low-end devices that represent the majority of emerging markets) . We should consider cloning this functionality into Java, packaged as a Cordova plugin, so that the Android build can make more efficient use of limited CPU time.

This is arguably blocked by #2094.

@willscott
Copy link
Member

Is there an existing java implementation of WebRTC that could be used as a
starting point for this piece of work?

On Wed, Nov 25, 2015 at 11:55 AM, Benjamin M. Schwartz <
[email protected]> wrote:

Passing every TCP byte through JS is bad for performance. On desktop, this
is tolerable, but on mobile it is not (especially on low-end devices that
represent the majority of emerging markets) . We should consider cloning
this functionality into Java, packaged as a Cordova plugin, so that the
Android build can make more efficient use of limited CPU time.

This is arguably blocked by #2094
#2094.


Reply to this email directly or view it on GitHub
#2095.

@trevj
Copy link
Contributor

trevj commented Nov 25, 2015

Interesting idea! If I understand correctly, this is re-implementing just churn in Java?

@bemasc
Copy link
Contributor Author

bemasc commented Nov 25, 2015

No, I mean more like reimplementing SocksToRtc and RtcToNet in Java. Churn is currently disabled on mobile for performance, and I don't think we'll be able to do obfuscation until we have a native-code implementation, probably derived from the future UDP pluggable transports work.

@bemasc
Copy link
Contributor Author

bemasc commented Nov 25, 2015

@willscott: Yes, webrtc already has totally solid Java bindings and build support for Android. WebRTC itself would (continue to) run in native code, not Java (or JavaScript).

@bemasc
Copy link
Contributor Author

bemasc commented Nov 8, 2016

I'm not convinced that this is obsolete. Actually, I think it blocks #2800

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants