From 89b85934f60ba0012f3de6da03eb12959e4b4b72 Mon Sep 17 00:00:00 2001
From: xuri <xuri.me@gmail.com>
Date: Mon, 27 Dec 2021 23:34:14 +0800
Subject: This closes #1096, memory usage optimization and another 4 changes

- Unzip shared string table to system temporary file when large inner XML, reduce memory usage about 70%
- Remove unnecessary exported variable `XMLHeader`, we can using `encoding/xml` package's `xml.Header` instead of it
- Using constant instead of inline text for default XML path
- Rename exported option field `WorksheetUnzipMemLimit` to `UnzipXMLSizeLimit`
- Unit test and documentation updated
---
 calcchain_test.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'calcchain_test.go')

diff --git a/calcchain_test.go b/calcchain_test.go
index 4956f60..6144ed5 100644
--- a/calcchain_test.go
+++ b/calcchain_test.go
@@ -5,7 +5,7 @@ import "testing"
 func TestCalcChainReader(t *testing.T) {
 	f := NewFile()
 	f.CalcChain = nil
-	f.Pkg.Store("xl/calcChain.xml", MacintoshCyrillicCharset)
+	f.Pkg.Store(dafaultXMLPathCalcChain, MacintoshCyrillicCharset)
 	f.calcChainReader()
 }
 
-- 
cgit v1.2.1