This repository was archived by the owner on Nov 20, 2018. It is now read-only.
This repository was archived by the owner on Nov 20, 2018. It is now read-only.
Reading the Form data goes to disk every time #343
Closed
Description
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.