How to reinvent findstr with Powershell?
i reinvented findstr (aka find/grep) using oracle's "groovy" programming language on 8 core machine , experienced 10 fold improvement on cygwin's find/grep -- because used threads (but not thread pools). great surprise because expecting i/o bound. apparently findstr/find/grep not i/o bound , spending time matching patterns. hmm.... strange...
after learning merits of win32 thread pools reinvent findstr in powershell , use thread pools multiple threads.
can me write multithreaded powershell program (recursively?) descends thru directory tree , searches contents of files regular expression using multiple threads win32 thread pools.
i'm not sure how this! should use .net or win32 thread pool api?
thanks!
siegfried
siegfried heintze
hi,
why not using cmdlet select-string?
if want create multithreaded powershell command should use c# , develop cmdlet own.
regards thomas paetzold visit blog on: http://sus42.wordpress.com
Windows Server > Windows PowerShell
Comments
Post a Comment