Skip to content

Commit

Permalink
Set Message::default_length() to 128.
Browse files Browse the repository at this point in the history
This is experimental change to reduce static memory footprint of very
large dataflow graphs.  Allocating 1024 entries per channel adds up to
tens of MB even for a single worker.  The new setting will likely have
adverse effect on performance in some scenarios.  Ideally, we would like
an adaptive channel size that scales up an down with demand.
  • Loading branch information
ryzhyk committed Apr 9, 2021
1 parent 6d86538 commit 5b999d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion timely/src/dataflow/channels/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub struct Message<T, D> {
impl<T, D> Message<T, D> {
/// Default buffer size.
pub fn default_length() -> usize {
1024
128
}

/// Creates a new message instance from arguments.
Expand Down

0 comments on commit 5b999d0

Please sign in to comment.