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

Too many threads -> go green ? #118

Open
asmodehn opened this issue Nov 15, 2016 · 1 comment
Open

Too many threads -> go green ? #118

asmodehn opened this issue Nov 15, 2016 · 1 comment

Comments

@asmodehn
Copy link
Member

rospy create multiple threads in a few places...

This means there is one thread per topic (publisher side for async send) it seems.

These threads being OS threads, there will be fighting for CPU resources in OS scheduler (with context switching overhead).

It would be nice to propose alternatives to the user...

Maybe pyros could duck punch the threading module for rospy and allow using greenthreads ?

or maybe a patch directly in rospy ?

@asmodehn
Copy link
Member Author

Greenthread might be a small improvement. but ultimately we should consider an async framework :
https://www.youtube.com/watch?v=82vuCZ4FLFE

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

1 participant