diff options
author | Michael <mike.harris@cerner.com> | 2019-10-24 09:14:33 -0500 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2019-10-24 22:14:33 +0800 |
commit | 9fe267ffcfa06545223160cdb8c35cd91163730e (patch) | |
tree | 4ddcf2eddd0c2b6b3533c17b99f7a9fff6db4bad /rows_test.go | |
parent | e7581ebf3e14f096b6e2d56ed34d381b4af6d310 (diff) |
Pre-allocate some memory when reading files (#510)
Diffstat (limited to 'rows_test.go')
-rw-r--r-- | rows_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rows_test.go b/rows_test.go index ba81f9f..f0fbe03 100644 --- a/rows_test.go +++ b/rows_test.go @@ -695,8 +695,8 @@ func TestErrSheetNotExistError(t *testing.T) { } func BenchmarkRows(b *testing.B) { + f, _ := OpenFile(filepath.Join("test", "Book1.xlsx")) for i := 0; i < b.N; i++ { - f, _ := OpenFile(filepath.Join("test", "Book1.xlsx")) rows, _ := f.Rows("Sheet2") for rows.Next() { row, _ := rows.Columns() |