Commit Graph

3 Commits

Author SHA1 Message Date
Günther Foidl aa7804c247
Don't mutate strings in Kestrel (#17556)
* Removed mutating of string-contents in BCryptHandle

* Revert "Removed mutating of string-contents in BCryptHandle"

This reverts commit 5ae80c2834471baf34d1e5a05a42e3cce1ff02d7.

This is a .NET STandard 2.0 project, so no span is available by default. I think it's not worth it to add a reference to System.Memory-package just for this change.

* Better perf for StringUtilities.TryGetAsciiString

* Removed mutating of created string from HttpUtilities

* Use static readonly span-actions as this gives a boost due to not having a null check for the compiler generated cached delegate

* Debug Asserts

* PR Feedback
2020-02-10 22:21:07 +00:00
Nick Kirby d6cb79e64a
Use FirstSpan instead of calling First.Span (#18615) 2020-01-31 12:51:40 -08:00
Chris Ross 3b7cdc166a
Generalize Http2Cat #14894 (#17438) 2019-12-03 16:16:52 -08:00