Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
The stupid question is the question not asked
 
PerlMonks  

Re: Archive::Zip performance question

by Miguel (Friar)
on Feb 16, 2005 at 22:56 UTC ( #431781=note: print w/ replies, xml ) Need Help??


in reply to Archive::Zip performance question

I spent 86 seconds to add 5.000 .txt files (only 6 Kb each...) to a zip file:

#!/usr/bin/perl -w use strict; use Archive::Zip; use IO::All; my $io = io("."); my $zip = Archive::Zip->new(); my $t1 = time(); while ( $_ = $io->next ) { $zip->addFile("$_") if $_ =~/\.txt$/; } $zip->writeToFileNamed('ZipFile.zip'); print "\n", time() - $t1, "\n";

I'm using Linux on a PIV 1.7Ghz with 256Mb Ram


Comment on Re: Archive::Zip performance question
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (16)
As of 2014-04-18 17:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (471 votes), past polls