From 0833a9d5dab846ed01be52fa59c97ede36ee4a93 Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Sun, 12 Feb 2017 19:03:24 +0800 Subject: - Improved performance when reading large files, call Token to read tokens one by one instead Unmarshal. Related issue #20 ; - Fix go test typo; - Update README --- lib.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib.go') diff --git a/lib.go b/lib.go index 77c6e23..c3767e3 100644 --- a/lib.go +++ b/lib.go @@ -3,7 +3,6 @@ package excelize import ( "archive/zip" "bytes" - "encoding/xml" "io" "log" "math" @@ -26,11 +25,6 @@ func ReadZipReader(r *zip.Reader) (map[string]string, int, error) { fileList[v.Name] = readFile(v) if len(v.Name) > 18 { if v.Name[0:19] == "xl/worksheets/sheet" { - var xlsx xlsxWorksheet - xml.Unmarshal([]byte(fileList[v.Name]), &xlsx) - xlsx = checkRow(xlsx) - output, _ := xml.Marshal(xlsx) - fileList[v.Name] = replaceWorkSheetsRelationshipsNameSpace(string(output)) worksheets++ } } -- cgit v1.2.1