setRewriteAndOptimizeFileSize

open fun setRewriteAndOptimizeFileSize(rewriteAndOptimizeFileSize: Boolean)

Sets whether when saving unnecessary data should be removed from the document causing smaller file sizes. Setting this to true will automatically disable incremental saving. When set to true this will lead to smaller file sizes than incremental saving or a regular rewrite at the expense of the saving process taking longer.

Parameters

rewriteAndOptimizeFileSize

true if the file size should be optimized, false otherwise.