Xenofur has asked for the wisdom of the Perl Monks concerning the following question:
The empty return is intentional for now.use autodie; $c->do_update(); sub do_update { my ($c) = @_; for my $file ( @files ) { $c->process_dump_file( $file ); } } sub process_dump_file { my ($c, $file) = @_; my @orders; open my $csv, "<", $file; push @orders, [ split ' , ', $_ ] while ( <$csv> ); close $csv; shift @orders; return; }
Extracted 308272 orders. CSV time: 4 wallclock secs ( 4.05 usr + 0.28 sys = 4.33 CPU) Extracted 301468 orders. CSV time: 127 wallclock secs (123.47 usr + 0.44 sys = 123.91 CPU) Extracted 316912 orders. CSV time: 136 wallclock secs (131.77 usr + 0.42 sys = 132.19 CPU) Extracted 426854 orders. CSV time: 145 wallclock secs (139.91 usr + 0.66 sys = 140.56 CPU) Duration: 432 wallclock secs (412.98 usr + 3.31 sys = 416.30 CPU)
|
|---|