diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-10-03 23:12:56 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-10-23 14:30:29 +0200 |
commit | 0c24faee6b622971d7d8f989da36029200cbd2a5 (patch) | |
tree | be33db223c5beba6aee04b58207cde009934b6c3 /package/inc/ZipOutputEntry.hxx | |
parent | 143bbb20a3f4d757e2493fc078deea7dbaa1e14f (diff) |
FastSerializer: Also use cache for writing to ForMerge if we are inside mark()
To ensure the correct order of calling ForMerge methods,
call flush always before touching maMarkStack.
This was the missing piece in optimizing write() methods,
because of writeBytes() checking each time what to call.
E.g. for Calc documents we don't use maMarkStack at all.
So, just transfer the output to proper "ForMerge" when inside mark()
and allow optimizations.
This commit makes write() methods almost 1/3 as fast.
Change-Id: I96c13888206c81f87e29b998839f78ea9d5570af
Diffstat (limited to 'package/inc/ZipOutputEntry.hxx')
0 files changed, 0 insertions, 0 deletions