-
Notifications
You must be signed in to change notification settings - Fork 151
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
=str Avoid sub materialization in lazySingle. #49
Conversation
akka-stream/src/main/scala/akka/stream/impl/fusing/LazySingleSource.scala
Outdated
Show resolved
Hide resolved
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.
requesting changes
@He-Pin You need to rebase this |
@He-Pin Do you want to look into this now that we are on 1.1.x series (i.e. rebase on current main)? Also if possible and easy to do so would it be possible to add a benchmark in https://github.com/apache/incubator-pekko/tree/b0fdac259bd57fdd481483f3fe9a7aec6e1ff38a/bench-jmh/src/main/scala/org/apache/pekko/stream ? While I am sure that you version has better performance, the adding of the benchmark is to prevent any potential future performance regressions. |
stream/src/main/scala/org/apache/pekko/stream/impl/fusing/LazySingleSource.scala
Show resolved
Hide resolved
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.
lgtm
refs: #46
There is already a PR in akka , which using
single(()).map(_ => create())
which is simpler, this code itself is easy to understand too, or should I go withsingle(create).map(_())
?Will have to wait: #38