in reply to how to split huge file reading into multiple threads
Probably not, since all the threads will be hitting a bottleneck of trying to read the same file at the same time. The limiting factor is how fast your hard drive is. See How do you parallelize STDIN for large file processing? and Is Using Threads Slower Than Not Using Threads? for examples.
There may be some improvements gained if you could use a program like split to break your huge file into smaller chunks, and place them on separate hard drives, then let your parallel processes work on them.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to split huge file reading into multiple threads
by sagarika (Novice) on Aug 30, 2011 at 09:31 UTC | |
by zentara (Cardinal) on Aug 30, 2011 at 11:07 UTC | |
by zentara (Cardinal) on Aug 30, 2011 at 22:35 UTC | |
by BrowserUk (Patriarch) on Aug 30, 2011 at 23:08 UTC | |
by zentara (Cardinal) on Aug 31, 2011 at 11:21 UTC | |
by BrowserUk (Patriarch) on Aug 31, 2011 at 12:39 UTC | |
|