-
Notifications
You must be signed in to change notification settings - Fork 156
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
feat: Add TraversalBuilder.getValuePresentedSource method for further optimization #1701
base: main
Are you sure you want to change the base?
Conversation
@@ -23,7 +23,7 @@ import java.util.function.Consumer | |||
|
|||
/** INTERNAL API */ | |||
@InternalApi private[stream] final class JavaStreamSource[T, S <: java.util.stream.BaseStream[T, S]]( | |||
open: () => java.util.stream.BaseStream[T, S]) | |||
val open: () => java.util.stream.BaseStream[T, S]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needed for optimization.
@@ -22,7 +22,7 @@ import pekko.stream.stage.{ GraphStage, GraphStageLogic, OutHandler } | |||
/** | |||
* INTERNAL API | |||
*/ | |||
@InternalApi private[pekko] final class FailedSource[T](failure: Throwable) extends GraphStage[SourceShape[T]] { | |||
@InternalApi private[pekko] final class FailedSource[T](val failure: Throwable) extends GraphStage[SourceShape[T]] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needed for optimization.
684155c
to
0735893
Compare
stream/src/main/scala/org/apache/pekko/stream/impl/TraversalBuilder.scala
Outdated
Show resolved
Hide resolved
stream-tests/src/test/scala/org/apache/pekko/stream/impl/TraversalBuilderSpec.scala
Show resolved
Hide resolved
0735893
to
5ee21b8
Compare
After this pr get merged, we can do some optimization for |
@pjfanning @raboof Would you like to help review this? |
bfbfe06
to
01de9bb
Compare
01de9bb
to
041a74a
Compare
@pjfanning I have rebased on the current main. @mdedetrich @Roiocam Would you like to take a look too? |
I think this looks ok but I would prefer to see some more reviews but it gets merged. |
Yeah, really hope we get more reviewer:) |
Motivation:
Add helper method to extract the value presented graph which will enable future optimization.
which is needed in #1672
Modification:
Add TraversalBuilder.getValuePresentedSource method
Result:
TraversalBuilder.getValuePresentedSource internal method added