Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Large scale search and replace with perl -iby Abigail-II (Bishop) |
on Apr 14, 2003 at 20:44 UTC ( [id://250412]=note: print w/replies, xml ) | Need Help?? |
But with the use of xargs, there won't be many
spawnings of perl. Furthermore, given that the number of
files was supposed to be large, I'd expect the entire process
to be IO bound. Finally, yeah, process creation is a fairly
expensive operation, but so is calling a function in Perl.
And that function will be called for each file in the directory
tree, as compared to calling a perl instance for
every couple of hundred files matching the criteria.
Convince me with benchmarks. Abigail
In Section
Seekers of Perl Wisdom
|
|