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

Remove explicit numpy requirement from install_requires #135

Closed
wants to merge 1 commit into from

Conversation

holzman
Copy link

@holzman holzman commented Aug 8, 2014

According to the code, numpy is optional, not required.
(It improves the efficiency of hybi, but there's a fallback).

According to the code, numpy is optional, not required.
(It improves the efficiency of hybi, but there's a fallback).
@DirectXMan12
Copy link
Member

While it is possible to use websockify without numpy, it's better to use it with numpy, and the majority of users probably want numpy pulled in by default.

@holzman
Copy link
Author

holzman commented Apr 28, 2015

I respectfully disagree. It's a huge dependency to bring in for little benefit.

@kanaka
Copy link
Member

kanaka commented Apr 28, 2015

@holzman do you have any quantitative numbers? For example, round trip time for a few thousand small messages from browser to websockify to server and back. And time to send a few hundred meg from browser to server.

While this only effects client to server traffic (due to masking), my memory is that I've seen a noticeable difference in latency with numpy vs raw python. For example, in noVNC when moving the mouse around screen rapidly, the server's mouse will lag further behind without numpy. However, more importantly, noVNC is not the only user of websockify and for applications where there might be a lot of client to server traffic, the difference could be quite significant.

You might be right, but I would trade extra disk usage in exchange for performance any day especially for websockify. If you can show quantitatively that the performance difference is negligible for numpy vs raw python, then removing numpy from the default would make more sense to me. Or propose a different way of doing this in python that has equal or better performance in all important uses cases and with a smaller dependencies, I think that would be great.

@holzman
Copy link
Author

holzman commented Apr 28, 2015

Fair enough, I haven't done any quantitative measurement. I'll do so and propose the appropriate change.

  • B

On Apr 28, 2015, at 5:50 PM, "Joel Martin" <notifications@github.commailto:notifications@github.com> wrote:

@holzmanhttps://github.com/holzman do you have any quantitative numbers? For example, round trip time for a few thousand small messages from browser to websockify to server and back. And time to send a few hundred meg from browser to server.

While this only effects client to server traffic (due to masking), my memory is that I've seen a noticeable difference in latency with numpy vs raw python. For example, in noVNC when moving the mouse around screen rapidly, the server's mouse will lag further behind without numpy. However, more importantly, noVNC is not the only user of websockify and for application where they might be a lot of client to server traffic, the difference could be quite significant.

You might be right, but I would trade extra disk usage in exchange for performance any day especially for websockify. If you can show quantitatively that the performance difference is negligible for numpy vs raw python, then removing numpy from the default would make more sense to me. Or propose a different way of doing this in python that has equal or better performance in all important uses cases and with a smaller dependencies, I think that would be great.


Reply to this email directly or view it on GitHubhttps://github.com//pull/135#issuecomment-97248234.

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

3 participants