- 
                Notifications
    You must be signed in to change notification settings 
- Fork 5.2k
Closed
Labels
Milestone
Description
- Identify places, where we know the file size up-front. Example: File.WriteAll*.File.Copyetc.
- Ensure that the given source code has benchmarks coverage in the performance repo (contribute new benchmarks).
- Change the source code to use the new FileStreamctor that allows for specifyingallocationSizeand specify the exact value (or estimation as OS is smart enough to shrink the file (when it's closed) if it was too much).
- Compare before vs after. If there is a visible performance or reliability gain, contribute the change to dotnet/runtime.
Since #51111 has not been merged yet, please use it for measurements.