in reply to File::Slurp Not As Efficient As OPEN / CLOSE
File::Slurp says in its description: Efficient Reading / Writing of Complete Files
Well, that affirmation could be just some propaganda from the module author.
Anyway, writing lots of very small files, you are benchmarking an extreme, non representative, case. Looking at the module source code it seems that it introduces some overhead in order to support all its features, but that overhead would probably become insignificant when your files reach a more usual length.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File::Slurp Not As Efficient As OPEN / CLOSE
by blazar (Canon) on Oct 27, 2008 at 20:58 UTC | |
|
Re^2: File::Slurp Not As Efficient As OPEN / CLOSE
by herveus (Prior) on Oct 28, 2008 at 14:32 UTC |