diff options
author | Ri Xu <xuri.me@gmail.com> | 2017-02-12 19:03:24 +0800 |
---|---|---|
committer | Ri Xu <xuri.me@gmail.com> | 2017-02-12 19:03:24 +0800 |
commit | 0833a9d5dab846ed01be52fa59c97ede36ee4a93 (patch) | |
tree | 9daaf8583f716a924aeb108b7255808d811f3e8c /lib.go | |
parent | 53564cbe57522467a7e0febd0c9ae4374fa90808 (diff) |
- 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
Diffstat (limited to 'lib.go')
-rw-r--r-- | lib.go | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -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++ } } |