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

Use interpolated string handler to reduce allocations on the happy path #1186

Open
vbreuss opened this issue Nov 12, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@vbreuss
Copy link
Contributor

vbreuss commented Nov 12, 2024

From this comment in #909: Use string interpolation handlers to reduce the allocation of Func<> on the happy path.

@vbreuss
Copy link
Contributor Author

vbreuss commented Nov 16, 2024

@viceroypenguin
If I understand the mechanics correctly, when using string interpolation handlers, I would have to check the condition twice:
Once, to know it myself (if it is a success or failure case) and once for the string interpolation handler.

Is this correct or did I overlook something?

@thomhurst thomhurst added the enhancement New feature or request label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants