-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Kestrel should create strings using newer idiomatic method #8978
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
Comments
Especially on small string-lengths, as the cost for the delegate invocation may be quite high in relation to actual work. |
Thanks for opening this! 😃 |
FYI: I gave this a try. Perf results don't look so bad so far, but I need more testing for the other methods, then I'll submit a PR. |
I imagine that once static function pointers come online there would be |
Yeah, I hope so too. That can open a door for a lot of "delegate" usages, and make some generic-struct-tricks obsolete. |
@halter73 this issue can be closed, as the PR got merged? |
Uh oh!
There was an error while loading. Please reload this page.
Currently uses
string key = new string('\0', keyLength)
and then mutates with fixed.Should use something more like
string.Create
However, attention needs to be given to avoid any performance regressions.
/cc @GrabYourPitchforks @davidfowl
The text was updated successfully, but these errors were encountered: