-
Notifications
You must be signed in to change notification settings - Fork 276
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
Activate only by channel ID #526
Activate only by channel ID #526
Conversation
@@ -2,7 +2,6 @@ | |||
|
|||
use std::rc::Rc; | |||
use std::cell::RefCell; | |||
use std::collections::VecDeque; | |||
|
|||
use crate::{Push, Pull}; | |||
use crate::allocator::Event; |
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.
Check if Event
still needs to exist.
timely/src/worker.rs
Outdated
for (channel, _event) in borrow.drain(..) { | ||
borrow.sort_unstable(); | ||
borrow.dedup(); | ||
for channel in borrow.drain(..) { | ||
// TODO: Pay more attent to `_event`. |
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.
Update comment.
Signed-off-by: Moritz Hoffmann <antiguru@gmail.com>
Signed-off-by: Moritz Hoffmann <antiguru@gmail.com>
2231deb
to
34f287d
Compare
Signed-off-by: Moritz Hoffmann <antiguru@gmail.com>
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.
This makes sense to me, and we've left the comment in that reminds us how it might be different in the future (tracking the emptiness of channels, and not scheduling only on the basis of a message both sent and received).
This changes activation to avoid an associated event, which is currently not used anymore. It also switches to a
Vec
to contain the activations, and deduplicates before activating operators.This improves performance in edge cases: