阅读背景:

为什么。net的文件。打开一个UNC路径进行过多的SMB调用?

来源:互联网 

I have a block of code that needs to open and read a lot of small text files from a NAS server using UNC paths. This code is part of a module that was originally written in C++ but is now being converted to C#. The C# version is significantly slower. I determined that the call to open the file accounts for nearly all of the performance difference. Using WireShark I found that this is because the System.IO.File.Open call makes far more SMB network requests than similar C++ code.I have a block of code that needs to open and r




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: