-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Allow finer selection of io #3521
Conversation
One bit of tension with exposing additional My initial recommendation would be to make the PR as conservative as possible, since we can easily add more flags in the future (but can't take any away). For example, maybe we should only add a flag for cc @carllerche if you have any advice for public API additions |
We could add a flag for only process, but then how would that look as enabling io? I think we can't really change enable_io to mean "just net/io". So having only "enable_io" and "enable_process" doesn't really fix the issue, since I need "io without process". Maybe just "enable_minimal_io" which does only the base io and no signal/no process? And we retain the current enable_io as enabling both signal and process. I agree that being conservative is the right move, there is a lot that could go wrong I think. |
Yeah, if anything, I agree with only adding process for now. |
When you say "adding process" what do you mean? What do you think the enable api calls should be? |
I meant adding only |
That won't solve the problem that I have - I need a way to enable_io but without enabling process or signal. So what would an "enable io but without process and without signal" be called? |
Right. I guess in that case we would need a function like |
aa6fb48
to
4ed30c3
Compare
@Darksonn This is a rebase and clean up of the changes for this. I still have enable signal as an exposed feature here, but I can also remove that if wanted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are your thoughts @ipetkov, @carllerche?
4ed30c3
to
469c79a
Compare
Commenting in the issue first. |
Looking over the discussion here and in the issue, I think a better approach would be to ensure that if the process/signal drivers are unused, then they do not register any global state. Luckily, that was already implemented in #3743. Thank you for the PR. |
Motivation
#3520
Allow fine-grained selection of enabled drivers.
Solution
Use multiple booleans and add more options.
This is a very rough patch, and probably will cause some issues or hit edge cases that I don't understand or forsee, so any advice would be really appreciated!