1
0
Fork 1
mirror of https://github.com/vbatts/tar-split.git synced 2024-11-15 12:58:38 +00:00
tar-split/tar/storage
Miloslav Trmač 8d76363085 Avoid a 32 kB file allocation on every bitBucketFilePutter.Put
io.Copy usually allocates a 32kB buffer, and due to the large
number of files processed by tar-split, this shows up in Go profiles
as a very large alloc_space total.

It doesn't seem to actually be a measurable problem in any way,
but we can allocate the buffer only once per tar-split creation,
at no additional cost to existing allocations, so let's do so,
and remove the distraction.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2021-08-21 03:24:39 +02:00
..
doc.go *: clean up assorted spelling/grammar issues 2015-07-22 15:32:49 -04:00
entry.go common: remove in favor of stdlib unicode/utf8 2015-09-25 14:33:24 -04:00
entry_test.go tar/storage: work with raw (invalid utf8) names 2015-09-23 15:27:33 -04:00
getter.go Avoid a 32 kB file allocation on every bitBucketFilePutter.Put 2021-08-21 03:24:39 +02:00
getter_test.go tar/storage: Benchmark for bufferFileGetPutter.Put 2015-08-13 11:42:14 -07:00
packer.go Optimize JSON decoding 2015-11-30 09:52:44 -08:00
packer_test.go tar/storage: adding Getter Putter benchmark 2015-12-01 15:31:48 -05:00