UNC Path Appears To Slow File Enumeration Considerably

心不动则不痛 提交于 2019-12-04 19:45:01

This is an old question and the comments seem to get half way there but there's no reason not to try and attempt to answer this. The file count here is part of the issue in that there are 72,000 of them. So what's going on?

Well, as already answered here, it essentially comes down to context switching between the different processes that are used when dealing with UNC paths over local paths, specifically the calling process and the SMB client + server processes. This boils down to: direct is faster. Don't go via UNC if it's a local resource, and, obviously, the more files involved the slower it'll be.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!