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

=str Avoid sub materialization in lazySingle. #49

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

He-Pin
Copy link
Member

@He-Pin He-Pin commented Nov 16, 2022

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 with single(create).map(_())?

Will have to wait: #38

@He-Pin He-Pin added this to the 1.1.0 milestone Nov 16, 2022
Copy link
Contributor

@pjfanning pjfanning left a comment

Choose a reason for hiding this comment

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

requesting changes

@mdedetrich
Copy link
Contributor

@He-Pin You need to rebase this

@mdedetrich
Copy link
Contributor

mdedetrich commented Jul 31, 2023

@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.

@He-Pin He-Pin marked this pull request as ready for review July 31, 2023 18:53
Copy link
Contributor

@pjfanning pjfanning left a comment

Choose a reason for hiding this comment

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

lgtm

@He-Pin He-Pin merged commit 43d4737 into apache:main Aug 2, 2023
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Related to performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants