|
|
Performance of Get-ChildItem
Hello there, can anybody explain me this:
poshdev >[30]: Measure-Command { Get-ChildItem m:\ -rec }
...
TotalSeconds : 38,5198933
...
poshdev >[31]: Measure-Command { Get-ChildItem m:\ -rec -name }; growl
gci
....
TotalSeconds : 80,8819459
....
I would swear that the -name parameter causes that the performance
will be much better because all the other properties (attributes,
times, ...) don't have to be set.
So.. any ideas?
|
|
0
|
|
|
|
Reply
|
stej
|
12/16/2009 9:07:03 AM |
|
(the 'growl gci' command should not be there of course. Anyway, it
doesn't affect the results.)
|
|
0
|
|
|
|
Reply
|
stej
|
12/16/2009 9:18:14 AM
|
|
I'm not sure why adding -name should make it run faster.
Read this Lee Holmes article for some PowerShell team thinking
about the runtime efficiency of Get-ChildItem in a file system context.
http://blogs.msdn.com/powershell/archive/2009/11/04/why-is-get-childitem-so-slow.aspx
- Larry
stej wrote:
> Hello there, can anybody explain me this:
> poshdev >[30]: Measure-Command { Get-ChildItem m:\ -rec }
> ..
> TotalSeconds : 38,5198933
> ..
>
> poshdev >[31]: Measure-Command { Get-ChildItem m:\ -rec -name }; growl
> gci
> ...
> TotalSeconds : 80,8819459
> ...
>
> I would swear that the -name parameter causes that the performance
> will be much better because all the other properties (attributes,
> times, ...) don't have to be set.
> So.. any ideas?
|
|
0
|
|
|
|
Reply
|
Larry__Weiss
|
12/16/2009 2:46:14 PM
|
|
|
2 Replies
640 Views
(page loaded in 0.058 seconds)
Similiar Articles: Performance of Get-ChildItem - microsoft.public.windows.powershell ...Hello there, can anybody explain me this: poshdev >[30]: Measure-Command { Get-ChildItem m:\ -rec } ... TotalSeconds : 38,5198933 ... po... Get-ChildItem.Count not working with one file - microsoft.public ...Performance of Get-ChildItem - microsoft.public.windows.powershell ..... for some PowerShell team thinking about the runtime efficiency of Get-ChildItem in a file ... Script to delete files and subfolders in all directories named Arc ...Script to delete files and subfolders in all directories named Arc ... Performance of Get-ChildItem - microsoft.public.windows.powershell ... Script to delete files and ... Working with DirectoryInfo - microsoft.public.windows.powershell ...The Get-ChildItem cmdlet is trying to the cache folders in my home ... Performance of Get-ChildItem - microsoft.public.windows.powershell ... Working with ... Displaying arrays - microsoft.public.windows.powershell ...Performance of Get-ChildItem - microsoft.public.windows.powershell ... Displaying arrays - microsoft.public.windows.powershell ... microsoft public windows vista ... writing performance data to csv file - microsoft.public.windows ...Performance of Get-ChildItem - microsoft.public.windows.powershell ... writing performance data to csv file - microsoft.public.windows ... $path ... CPU performance monitoring via powershell - microsoft.public ...Is there a command in powershell where I can monitor the cpu performance of the ... Performance of Get-ChildItem - microsoft.public.windows.powershell ... CPU ... Revised ques re {set-clipboard} and blank spaces - microsoft ...I don't have Set-ClipBoard (PSCX 1.0) Try double-quoting the entire ... Performance of Get-ChildItem stej 2 385 Force command to run for each computer in txt file list of compute ...Performance of Get-ChildItem - microsoft.public.windows.powershell ..... poshdev >[30]: Measure-Command ... gc from a txt file, put it in a ... ChildItem (gci)-recurse ... displaying the values of the Attributes property of a PowerShell ...Performance of Get-ChildItem - microsoft.public.windows.powershell ... gc from a txt file, put it in a variable, and pass to gci ... displaying the values of the ... Why is Get-ChildItem so Slow? - Windows PowerShell Blog - Site ...We get this question fairly frequently when it comes to slow network connections. The performance of directory listings (especially on a laggy network) are ... Performance of Get-ChildItem - microsoft.public.windows.powershell ...Hello there, can anybody explain me this: poshdev >[30]: Measure-Command { Get-ChildItem m:\ -rec } ... TotalSeconds : 38,5198933 ... po... Windows PowerShell - Get-ChildItem (gci)-recurse -forceGet-ChildItem is useful when you need to list, or enumerate the files in a folder. In DOS we would type: 'DIR'; the nearest equivalent in PowerShell is gci. Windows PowerShell Get-ChildItem (gci)-recurse -forceThe PowerShell Get-ChildItem cmdlet is useful when you need to list, or enumerate the files in a folder. In DOS we would type: 'DIR'; the nearest equivalent in ... A Taste Of PowerShell: Get-ChildItem (dir) Results Color-Coded by TypeThis boosts performance, and there is an analogue in each language that ... A Get-ChildItem Wrapper That Lets You Say How Deep... Use PowerShell to ... 7/23/2012 1:54:40 PM
|
|
|
|
|
|
|
|
|