diff options
author | Justin Luth <justin.luth@collabora.com> | 2020-03-12 20:13:53 +0300 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-03-13 09:59:00 +0100 |
commit | 6bc01f234de9a3c5abc00253fed8dc691320fd3b (patch) | |
tree | fbd2397a071be2f7ebd9db3dac5eceacd159ecdd /.gitattributes | |
parent | 7ba168173addd286fef11c0d5634fb3a1eb73fee (diff) |
tdf#131304 writerfilter: cache Word compatibilityMode
GetWordCompatibilityMode() is an expensive call
that is called at least for every table row.
Caching will soon be even more beneficial
when LO also starts writing out this value
and thus quickly caches a non-negative result.
Anything created by MS Word since at least 2010 specifies
this optional setting, so most .docx files specify
this value - and thus will benefit from the cache.
One difference that I ignored is that Word replaces a
"number greater than what I know" with its own
compatibilityMode value. (tested in Word 2010 and 2016.)
That is probably only a concern at export time anyway...
Change-Id: I0ee71d34150c5f3d9858adb678814a10c7fe8959
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90434
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth@sil.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions