]> Cypherpunks repositories - gostls13.git/commit
archive/zip: remove an allocation, speed up a test
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 13 Aug 2013 21:48:08 +0000 (14:48 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 13 Aug 2013 21:48:08 +0000 (14:48 -0700)
commitc7d352c9412de57ac5c9f5d7895540336ebaab5c
tree7a9d50b29cae1c80a7cd4254907eb4657e27c000
parentc18af467fdec00d4369bc9b5a140ff1d043aab2e
archive/zip: remove an allocation, speed up a test

Update #6138

TestOver65kFiles spends all its time garbage collecting.
Removing the 1.4 MB of allocations per each of the 65k
files brings this from 34 seconds to 0.23 seconds.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/12894043
src/pkg/archive/zip/reader.go
src/pkg/archive/zip/zip_test.go