|Keep It Simple, Stupid|
Use Coro for reading EventLog on many pc's?by gizmo_mathboy (Pilgrim)
|on Mar 14, 2011 at 20:38 UTC||Need Help??|
gizmo_mathboy has asked for the
wisdom of the Perl Monks concerning the following question:
I'm try to speed up some data collection on a bunch of Windows pc's.
Basically I need to parse some info out of the the Event Log. I then munge some data from a bunch of files and then pass data back in an array of arrays.
My current programs takes about a minute per pc to run and I am testing about about 70pc's at the moment and could potentially need to run this on 1,000's.
Here's a stripped down version of the code.
After spending time googling, reading the docs and PerlMonks I just need to use Coro (I don't think I need AnyEvent but I'm not sure).
The biggest time suck is dealing with the Event Log.
My first naive attempt to use Coro is to just change the while loop that processes the list of pc's to be:
This didn't change the time it took to process my test horder at all.
I can't recall the last time I event pondering doing anything event related let alone thread related.
Any and all guidance much appreciated.