Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Multithreading a large file split to multiple files

by sundialsvc4 (Abbot)
on May 15, 2018 at 15:22 UTC ( #1214563=note: print w/replies, xml ) Need Help??


in reply to Multithreading a large file split to multiple files

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^2: Multithreading a large file split to multiple files
by jeffenstein (Friar) on May 16, 2018 at 08:35 UTC

    From the IO::Handle documentation:

    # setvbuf is not available by default on Perls 5.8.0 and later. use IO::Handle '_IOLBF'; $io->setvbuf($buffer_var, _IOLBF, 1024);

    However, the PerlIO::buffersize module adds a PerlIO layer that can set the buffersize when opening a file:

    open my $fh, '<:buffersize(65536)', $filename;

Re^2: Multithreading a large file split to multiple files
by Anonymous Monk on May 15, 2018 at 15:35 UTC
    Having found this, I now turn the question over to other Monks is this still relevant?
    Handing it back to you. You don't know what you talk about, google an answer then ask if the answer you found is still current? If you don't know, stop posting. You help nobody

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1214563]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (1)
As of 2021-10-22 04:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (85 votes). Check out past polls.

    Notices?