Skip to content

Conversation

@jimexist
Copy link
Member

@jimexist jimexist commented Jun 17, 2021

Which issue does this PR close?

Based on #565 so review that first

Closes #.

Rationale for this change

initial results show that this will regress the performance for small number of partitions

What changes are included in this PR?

Are there any user-facing changes?

@jimexist jimexist changed the title use into iter to minimize array concats WIP use into iter to minimize array concats Jun 17, 2021
@jimexist jimexist force-pushed the use-flat-map branch 3 times, most recently from 88d0f9f to 345879e Compare June 22, 2021 10:15
.collect::<Result<Vec<_>>>()?
.into_iter()
.flatten();
ScalarValue::iter_to_array(result)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Dandandan i find that changing to use this, even if would be saving ArrayRef creating, makes the performance much worse, because it changes from iterating trusted len iterator to this boxed type with unbounded untrusted iterator.

@jimexist
Copy link
Member Author

close due to performance concerns

@jimexist jimexist closed this Jun 29, 2021
unkloud pushed a commit to unkloud/datafusion that referenced this pull request Mar 23, 2025
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