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

Some clarifications to dropping the updates in eval incr #1192

Merged
merged 1 commit into from
May 2, 2024

Conversation

Centril
Copy link
Contributor

@Centril Centril commented May 2, 2024

Description of Changes

Based on the latest flame-graph, we are spending notable time doing drop_in_place of the iterators of IncrementalJoin::eval.
At first, I thought this was because we were cloning and dropping 4x the SmallVec, but as these are inline and not heap allocated, that seems unlikely. So this PR tries to clarify in code that this isn't the case by using ArrayVec and borrows. Moreover, all the dropping work of the hash map is moved outside the rayon parallel iteration. Also, this makes the benchmarks slightly more accurate as they now do not clone-allocate + drop in place.

API and ABI breaking changes

None

Expected complexity level and risk

1

Copy link
Contributor

@mamcx mamcx left a comment

Choose a reason for hiding this comment

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

LGTM

@Centril Centril added this pull request to the merge queue May 2, 2024
Merged via the queue into master with commit 7c52ef5 May 2, 2024
7 checks passed
@Centril Centril deleted the centril/clarify-drop-in-place branch May 2, 2024 17:57
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.

2 participants