You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 20, 2018. It is now read-only.
Discussed with @Tratcher - we can have this wait until a write is actually needed to do the write, or even ask forgiveness instead of asking permission.
The text was updated successfully, but these errors were encountered:
In the context of this profile - 100% means the time inside Middleware (includes Files, Routing, MVC). Fully 20% of the app's time is spent enabling buffering for about 50 char of text.
Or change BufferingHelper.TempDirectory to cache. It's not like this is going to change much. It's the Directory.Exists check that's showing up in the profiles.
Found while profiling simple model binding scenarios in MVC
BufferingHelper.EnableRewind
will do a check for the existence of the temp directly on each request, even when there isn't enough data to force a write to disk.https://github.com/aspnet/HttpAbstractions/blob/dev/src/Microsoft.AspNet.Http/BufferingHelper.cs#L40
Discussed with @Tratcher - we can have this wait until a write is actually needed to do the write, or even ask forgiveness instead of asking permission.
The text was updated successfully, but these errors were encountered: