-
Notifications
You must be signed in to change notification settings - Fork 2.4k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Performance benchmark references #15182
Comments
Use
|
Creating the same object very often can be costly.In places like As simple as one constant variable saves 12 mb in memory allocation over 100k requests. For example, the below
|
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Use string interpolation when concatenation few strings.
A benchmark on a medium size string
That output of the following benchmark
But, when we are doing many concatenations, the results are not as good.
Here is the benchmark I used
/cc @deanmarcussen
The text was updated successfully, but these errors were encountered: