MemoryMappedFile creation so slow

we use a memory mapped file that is likely approx. 100 gb of data, when I call CreateViewStream on that file it likely has a duration of 30 minutes to create it and it seems that its depending on the size of the memory mapped file but why does take it so long? Does it copies the whole file into managed memory? It takes much longer when I write the file with a file stream and access it without a reboot. (strangely)

by liam8383 via /r/csharp

Leave a Reply