-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Labels
area-System.IOgood first issueIssue should be easy to implement, good for first-time contributorsIssue should be easy to implement, good for first-time contributorshelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributorstenet-performancePerformance related issuePerformance related issueuntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
Description
System.IO.File.ReadAllBytesAsync already uses FileOptions.SequentialScan flag when opening a file, but System.IO.File.Read does not:
| using (FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, bufferSize: 1)) |
Furthermore, this could be added in ReadAllText and alike, but it would need to be routed through StreamReader and that would probably require public API changes.
scalablecory, watfordgnf and GSPP
Metadata
Metadata
Assignees
Labels
area-System.IOgood first issueIssue should be easy to implement, good for first-time contributorsIssue should be easy to implement, good for first-time contributorshelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributorstenet-performancePerformance related issuePerformance related issueuntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner