Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Ros <sebastienros@gmail.com>2022-05-19 01:15:58 +0300
committerSebastien Ros <sebastienros@gmail.com>2022-05-19 01:15:58 +0300
commit92888eaf249c2a126de55e82e6f640a73ac6b307 (patch)
tree09d9237879796420dc8847e58cfc9fa084fe730e
parent4ba908469ab18c084e6f7d635418a006689521c4 (diff)
Improve performancesebros/eol
-rw-r--r--src/Servers/Kestrel/Core/src/Internal/Http/HttpParser.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Servers/Kestrel/Core/src/Internal/Http/HttpParser.cs b/src/Servers/Kestrel/Core/src/Internal/Http/HttpParser.cs
index 90367a5da1..5c48037472 100644
--- a/src/Servers/Kestrel/Core/src/Internal/Http/HttpParser.cs
+++ b/src/Servers/Kestrel/Core/src/Internal/Http/HttpParser.cs
@@ -241,6 +241,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http
// Returns the length of the line terminator (CRLF = 2, LF = 1)
// If no valid EOL is detected then -1
+ [MethodImpl(MethodImplOptions.AggressiveInlining)]
private int ParseHeaderLineEnd(ReadOnlySpan<byte> headerSpan, int headerLineLength)
{
// This method needs to be called with a positive value representing the index of either CR or LF