in reply to Re: File::Find in a thread safe fashion
in thread File::Find in a thread safe fashion

Well that's my fallback plan - dump the data to files, and collate later, but I was mostly just trying to be clever.
  • Comment on Re^2: File::Find in a thread safe fashion

Replies are listed 'Best First'.
Re^3: File::Find in a thread safe fashion (fork)
by tye (Sage) on Jul 28, 2006 at 15:52 UTC

    Note that telling File::Find to not chdir will cause it to run slower (every opendir and every stat will have to parse longer and longer path strings and retraverse those directories in order to get to the items involved), though I'm not sure how much slower. You might be better off using multiple processes instead of threads (as demonstrated and without using the non-portable fork to boot; tweetiepooh++).

    - tye