Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: File copy size limit on Linux

by maverick (Curate)
on Dec 19, 2003 at 15:38 UTC ( #315817=note: print w/replies, xml ) Need Help??


in reply to File copy size limit on Linux

From (insert name here)'s post, it looks like Perl's copy function is opening one file, reading some bytes and then spitting them out to another file...for lots of small files, this is probably the most efficent way to go about it.

But, I'd be willing to be that for very large files, it's probably faster to use 'system("cp file1 file2")'.

What you're trading here is the time it takes to do the system call vs.the speed of a native executable that might be pulling tricks at the file system level.

P.S. You're not running RedHat 2.1..it doesn't even have support for files > 2gb. :)

/\/\averick

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://315817]
help
Chatterbox?
[moritz]: I must say, when I was very active on perlmonks, I got really used to the markup and all the workflows
[moritz]: and then I didn't post for a while, and then tried to answer a question. It nearly drove me nuts
[moritz]: when you try to quote part of a question, you have to know/guess/reverse -engineer what kind of markup they used
[holli]: see? https://imgur.com/ a/XpF4b
[moritz]: and stuff it into a <blockquote>...</ blockquote>, which is, like, not at all bulky
[moritz]: specially if you're used to markdown
[holli]: there probably is some nodelet hack that lets you use markdown :)
[LanX]: a) well ... you can use the xml-version to get the original code w/o need of reverse engineering
[moritz]: yes, and that's the next problem: there are piles of workarounds, but not solution, no visible progress
[LanX]: b) you cahnge my wikisyntax to support markdown and stay PM compatible

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2017-11-20 19:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (291 votes). Check out past polls.

    Notices?