Commit 3353d2e7 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Allocate map with initial size that is eq to entries size

parent 524fda2f
......@@ -89,7 +89,7 @@ func handleZipEntryMetadata(output io.Writer, entry *zip.File, fileMap zipFileMa
}
func generateZipFileMap(zipEntries []*zip.File) zipFileMap {
fileMap := make(map[string]*zip.File)
fileMap := make(zipFileMap, len(zipEntries))
for _, entry := range zipEntries {
fileMap[entry.Name] = entry
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment