I have Kingston 2 TB M2 SSD. It has about 3000 MB per second reading.
However when I use the below code, the reading speed is about 153 MB per second even for very large files.
The application exe running in x64 and administrator mode.
How can I speed it up?
I am reading files to calculate their sha256 hash values for comparing.
using (var stream = File.Open(FilePath, FileMode.Open, FileAccess.Read))
{
byte[] hash = SHA256.ComputeHash(stream);
}
.net Core 7 WPF application