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

[Perf] Optimize stream nodes fanin and fanout #1250

Merged
merged 2 commits into from
Oct 24, 2023

Conversation

lovromazgon
Copy link
Member

Description

The nodes FanIn and FanOut were optimized in this PR. FanIn now doesn't use any reflection in case the pipeline consists of up to 6 sources. Beyond that amount, we fall back to reflection again. FanOut on the other hand uses a shortcut if there is only 1 destination - in that case it doesn't clone the record as there is no need.

Quick checks:

  • I have followed the Code Guidelines.
  • There is no other pull request for the same update/change.
  • I have written unit tests. (existing tests)
  • I have made sure that the PR is of reasonable size and can be easily reviewed.

@lovromazgon lovromazgon requested a review from a team as a code owner October 20, 2023 19:17
@lovromazgon lovromazgon enabled auto-merge (squash) October 24, 2023 11:23
@lovromazgon lovromazgon merged commit 3111797 into main Oct 24, 2023
3 checks passed
@lovromazgon lovromazgon deleted the lovro/stream-optimization branch October 24, 2023 11:26
@simonl2002 simonl2002 modified the milestones: 0.9.0, 0.8.0 Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants