-
Notifications
You must be signed in to change notification settings - Fork 524
Kestrel should implement IHttpRequestIdentifierFeature to avoid the slow default implementation #235
Comments
We also need this in order to take full advantage of the static feature collection from #162 |
I actually think we should make the default implementation not slow 😄 |
FYI, CPU profile of latest Kestrel showing that this is currently the most expensive item in the plaintext benchmark, accounting for 7.17% of all CPU time. |
Trying to make the default implementation in Hosting faster first: https://github.com/aspnet/Hosting/tree/damianedwards/fast-request-id |
@DamianEdwards Link to your branch on hosting doesn't work. Is that merged or deleted? |
Hosting has a very fast implementation that is already merged now. |
So this one good to close, or do we plan to do more on Kestrel to gain more perf? |
Kestrel could still do better than Hosting, such as #243 |
Or can push up to HttpAbstractions and add Then switch to lazy eval? aspnet/Hosting#394, no change in Kestrel, all aspnet servers go faster. |
Not sure if this is still relevant. @DamianEdwards feel free to close. |
@halter73 wanted to get pulse on this issue. Is it still relevant or did you break it into some other issue. |
I'm closing this issue. Feel free to reopen, but since the time this issue was filed, the default |
Perhaps use the socket handle ID combined with a simple counter of some sort. Make it as "free" as possible 😄
by @DamianEdwards
The text was updated successfully, but these errors were encountered: