in reply to Re: some forking help
in thread some forking help
With a 100Mb file and 50+ strings to search for, there could be some speed advantage to forking separate processes for each search string and letting them run in parallel. Especially, if the regexen are precompiled before forking.
Of course, the sheer simplicity of merlyn's solution probably more than compensates for the overall savings in time through the use of parallelism, when you realize that the tricky task of gathering up the individual counts from each of the child processes is not as straightforward as it may at first glance appear.
dmm
You can give a man a fish and feed him for a day ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re(2): some forking help
by fokat (Deacon) on Dec 25, 2001 at 00:32 UTC | |
by dmmiller2k (Chaplain) on Dec 25, 2001 at 01:13 UTC |