From c168233e70db8f220bd07d9d6d277ae9e2a4a73f Mon Sep 17 00:00:00 2001 From: xuri Date: Wed, 27 May 2020 00:02:29 +0800 Subject: speedup get cell value from shared string table --- excelize.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'excelize.go') diff --git a/excelize.go b/excelize.go index 3fd25aa..3e0255a 100644 --- a/excelize.go +++ b/excelize.go @@ -38,6 +38,7 @@ type File struct { Drawings map[string]*xlsxWsDr Path string SharedStrings *xlsxSST + sharedStringsMap map[string]int Sheet map[string]*xlsxWorksheet SheetCount int Styles *xlsxStyleSheet @@ -75,6 +76,7 @@ func newFile() *File { sheetMap: make(map[string]string), Comments: make(map[string]*xlsxComments), Drawings: make(map[string]*xlsxWsDr), + sharedStringsMap: make(map[string]int), Sheet: make(map[string]*xlsxWorksheet), DecodeVMLDrawing: make(map[string]*decodeVmlDrawing), VMLDrawing: make(map[string]*vmlDrawing), -- cgit v1.2.1