문제

If you have a larger folder tree with only files of 0-10Kb in size, and you had the same tree and the same files, but the files were 10-100Mb each. Would the search times be affected by the size of the files when searching for all files with a given extension?

E.g. Would the following PowerShell be affected?

dir C:\LargeFolderStructure -Filter '*.txt' -rec  
도움이 되었습니까?

해결책

The size of the files should not impact the query time on the directory.

If you want to test it yourself check out the Measure-Command cmdlet. It will show you the amount of time it takes to execute a command.

Measure-Command {dir C:\LargeFolderStructure -Filter '*.txt' -rec }
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top