1
0
mirror of https://github.com/golang/go synced 2024-10-04 09:21:21 -06:00
go/src/archive
Gyu-Ho Lee 77e68ea78a archive/tar: preallocate slice from paxHeaders
Preallocate keys slice with the length of paxHeaders map
to prevent slice growth with append operations.

Change-Id: Ic9a927c4eaa775690a4ef912d61dd06f38e11510
Reviewed-on: https://go-review.googlesource.com/23782
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2016-08-16 02:46:50 +00:00
..
tar archive/tar: preallocate slice from paxHeaders 2016-08-16 02:46:50 +00:00
zip archive/zip: use HTTPS for documentation link 2016-05-14 17:27:44 +00:00