]> Sergey Matveev's repositories - public-inbox.git/commit
GitCatFile: use offset for read instead of appending
authorEric Wong <e@80x24.org>
Sun, 23 Aug 2015 02:40:19 +0000 (02:40 +0000)
committerEric Wong <e@80x24.org>
Sun, 23 Aug 2015 02:40:39 +0000 (02:40 +0000)
commit8fef5b14a9c397eeece31c54c8f0d0c90a3ad2a6
tree4ab47da1e013d50480e4ed3b9b08b1ecf34584e6
parent26fdec5d23301d7e0e8b957ec8ad5287c9e9b7f4
GitCatFile: use offset for read instead of appending

There is no need to perform string appends when the
"read" and "sysread" functions take an offset argument
to append to the given buffer.

This avoid needless string creation.
lib/PublicInbox/GitCatFile.pm