diff options
author | Dominik Stadler <centic@apache.org> | 2020-12-29 19:29:22 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2020-12-29 19:29:22 +0000 |
commit | a7c1d84c5de4cca958e66df3aa9c238468794960 (patch) | |
tree | eef2469edd64a1bc141ab04693ada6292cd0c6bb /test-data | |
parent | b7463df98ce68836356e827ace44dd3e339aa7fe (diff) | |
download | poi-a7c1d84c5de4cca958e66df3aa9c238468794960.tar.gz poi-a7c1d84c5de4cca958e66df3aa9c238468794960.zip |
Improve the speed of the styles-optimiser when there are many styles in a Workbook
Profiling showed that the call to isUserDefined() took most of the time,
so we now fetch this only once for each style and remember the result and
use it in the inner loop.
The attached sample-file took aprox. 1m30s on a decent machine, now it is down
to around 2s.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884917 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test-data')
-rw-r--r-- | test-data/spreadsheet/styles-3563.xls | bin | 0 -> 674304 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/test-data/spreadsheet/styles-3563.xls b/test-data/spreadsheet/styles-3563.xls Binary files differnew file mode 100644 index 0000000000..05376aa239 --- /dev/null +++ b/test-data/spreadsheet/styles-3563.xls |