Frage

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  
War es hilfreich?

Lösung

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 }
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top