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

Remove usage of Optional from SimpleLoadBalancer #946

Merged
merged 4 commits into from
Nov 28, 2023

Conversation

PapaCharlie
Copy link
Member

According to benchmark results, this is creating significant garbage. Because this is not exposed as an external API, directly returning null instead of an Optional is safe and will be significantly less expensive.

According to benchmark results, this is creating significant garbage. Because
this is not exposed as an external API, directly returning null instead of an
Optional is safe and will be significantly less expensive.
@bohhyang
Copy link
Contributor

reminder for changing the changelog and version

@PapaCharlie PapaCharlie merged commit 76980d0 into master Nov 28, 2023
2 checks passed
@PapaCharlie PapaCharlie deleted the pchesnai/optionals branch November 28, 2023 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants