-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Use string.Create to build absolute URI #29448
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
Conversation
|
Doesn't compile? |
4bc7fce to
aaa5ecc
Compare
|
Sorry about that. It was a bad copy+past and I still haven't mastered the art of working with this code base. |
42c84ea to
9a21cd8
Compare
9a21cd8 to
e82f0b2
Compare
|
Hello @Tratcher! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
|
Thanks. |
|
Hi @Tratcher. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context. |
PR Title
Use string.Creat to build absolute URI.
PR Description
UriHelper.BuildAbsolutecreates an intermediary string for the combined path that is used only for concatenating with the other components to create the final URL.It also uses a non-pooled
StringBuilderthat is instantiated on every invocation. Although optimized in size, it is a heap allocation with an intermediary buffer.Using
string.Createwill bring a significant performance improvement.Fixes #28905