sfx2 store: add API to allow avoiding the fsync of the output file

Desktop / LibreOffice - Miklos Vajna [collabora.co.uk] - 10 January 2018 13:35 EST

The use-case is when the consumer of the output file will read it right after SfxBaseModel::storeToURL() returns, in which case an expensive fsync is pointless.

Times for 100 hello world inputs: 8516 -> 2785 ms is spent in ODT-load + HTML export + close (33% of original).

Change-Id: I05e424a43ebfeea363f82b57af60f5aaa28696b4 Reviewed-on: https://gerrit.libreoffice.org/47695

d03a75472298 sfx2 store: add API to allow avoiding the fsync of the output file
include/sfx2/docfile.hxx | 2 ++
include/sfx2/sfxsids.hrc | 3 ++-
sfx2/sdi/sfx.sdi | 2 +-
sfx2/source/appl/appuno.cxx | 1 +
sfx2/source/doc/docfile.cxx | 21 +++++++++++++++------
sfx2/source/doc/objstor.cxx | 4 ++++
6 files changed, 25 insertions(+), 8 deletions(-)

Upstream: cgit.freedesktop.org


  • Share