Skip to content

Clean up todos in traversal builder - #3371

Merged
Philippus merged 4 commits into
apache:mainfrom
Philippus:clean-up-todos-in-traversal-builder
Aug 5, 2026
Merged

Clean up todos in traversal builder#3371
Philippus merged 4 commits into
apache:mainfrom
Philippus:clean-up-todos-in-traversal-builder

Conversation

@Philippus

Copy link
Copy Markdown
Member

No description provided.

cannot use a linear builder, as it does not support later additions through the `add`-method
unclear how removing the cachedEmptyLinear has benefits
`outOwners = outOwners - out` not being present in the else branch seems to be an omission
@Philippus
Philippus force-pushed the clean-up-todos-in-traversal-builder branch from 2c078dd to 03ac475 Compare July 20, 2026 18:33
@He-Pin

He-Pin commented Jul 20, 2026

Copy link
Copy Markdown
Member

better with jmh numbers

@He-Pin He-Pin added the t:stream Pekko Streams label Jul 21, 2026
@He-Pin He-Pin added this to the 2.0.0-M4 milestone Jul 21, 2026
@He-Pin

He-Pin commented Jul 21, 2026

Copy link
Copy Markdown
Member

Not sure about whether an additional map operation will reduce performance.

@He-Pin He-Pin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this will reduce some performance ? the code is correct.

@He-Pin He-Pin removed this from the 2.0.0-M4 milestone Jul 22, 2026
@Philippus

Philippus commented Aug 4, 2026

Copy link
Copy Markdown
Member Author

Not sure why this would reduce performance? There are (almost) no code changes in this PR, also no additional map operations.

@pjfanning

Copy link
Copy Markdown
Member

I agree with Philippus. This change doesn't look like it contains anything that affects performance.

@Philippus
Philippus merged commit c946594 into apache:main Aug 5, 2026
10 checks passed
@Philippus
Philippus deleted the clean-up-todos-in-traversal-builder branch August 5, 2026 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t:stream Pekko Streams

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants