in reply to Re: Multi threading a
in thread Multi threading a
> Reading from a single file in multiple threads tends to be slower
Are you sure? Is not what MCE::Grep is for?
## File path, glob ref, IO::All::{ File, Pipe, STDIO } obj, or scalar +ref ## Workers read directly and not involve the manager process my @e = mce_grep_f { /pattern/ } "/path/to/file"; # efficient
Also: MCE::Grep#PARSING-HUGE-FILES
L*
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Multi threading a.. huge file -- MCE::Grep
by choroba (Cardinal) on Sep 03, 2021 at 07:55 UTC | |
|
Re^3: Multi threading a.. huge file -- MCE::Grep
by karlgoethebier (Abbot) on Sep 03, 2021 at 17:33 UTC |