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

Add collection::concatenate #170

Merged
merged 2 commits into from
Apr 26, 2019
Merged

Add collection::concatenate #170

merged 2 commits into from
Apr 26, 2019

Conversation

frankmcsherry
Copy link
Member

@frankmcsherry frankmcsherry commented Apr 26, 2019

This PR adds a free method concatenate to the collection module. The intent is to provide easier access to multi-collection concatenation, with currently either requires a chain of concat calls, or dropping into timely dataflow to use its multi-stream concatenation.

This PR also adds a Collection::concatenate method if you don't have a scope to start from.

@frankmcsherry frankmcsherry merged commit a8096d8 into master Apr 26, 2019
ryzhyk added a commit to vmware/differential-datalog that referenced this pull request Apr 26, 2019
We used to use `Collection::concat()` to concatenate multiple rules for
a collection one-by-one.  Turns out, this is extremely wasteful, as each
concat operator ends up copying both its input collections.

A better way to do this is with the lower-level `Stream::concatenate` API
from timely.  @frankmcsherry added a convenience wrapper for this API to
`collection.rs`: TimelyDataflow/differential-dataflow#170,
but until this change makes it to a released version of DD I created a
copy of this function in `program.rs`
ryzhyk added a commit to vmware/differential-datalog that referenced this pull request Apr 26, 2019
We used to use `Collection::concat()` to concatenate multiple rules for
a collection one-by-one.  Turns out, this is extremely wasteful, as each
concat operator ends up copying both its input collections.

A better way to do this is with the lower-level `Stream::concatenate` API
from timely.  @frankmcsherry added a convenience wrapper for this API to
`collection.rs`: TimelyDataflow/differential-dataflow#170,
but until this change makes it to a released version of DD I created a
copy of this function in `program.rs`
@frankmcsherry frankmcsherry deleted the collection_concatenate branch August 29, 2019 18:19
This was referenced Oct 29, 2024
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.

1 participant