in reply to Re: Speed reading (files)
in thread Speed reading (files)
That's using the same test as above, replacingusing read function 0.684900999069214 0.681570053100586 0.680304050445557 0.675194025039673 0.684563159942627 0.686581134796143 File::Slurp 1.57559299468994 1.5706889629364 1.5739688873291 1.5618691444397 1.56290698051453 1.58691692352295
withopen(FILE,"<$file") || die $!; my $data = do { local $/; <FILE> }; close(FILE);
my $data = read_file($file);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Speed reading (files)
by xdg (Monsignor) on Aug 04, 2005 at 16:14 UTC |