Compression of writer

Hi everyone.
I noticed that with some of my particularly large documents, full of formulas, when saving the document I get a “File I/O” error. After several tests, I think I have identified the cause in the fact that the RAM occupation exceeds 4GB and the saving zips the file using a 32-bit version of the compactor. Can anyone confirm this for me? And if so, is an upgrade to 64 bit possible?

This question needs more technical information, at least OS name and LO version.

You hint at the 32 bits limit (4GB). Have you really a 4GB+ document? What is the size of the file on disk?

Regarding 32/64 bits, it is a matter of compilation. You can generally choose the architecture to download, notably from the official TDF site. When you install from your distribution repository, the installer knows about your current configuration and downloads the ad hoc version. Problems usually arise from a bad initial manual choice.

You can also try to minimise your document size. This goes through styling instead of direct formatting (DF) because any formatting variation is always fully described in DF independently of every other occurrences. Styling “common factors” the definition of the variation and only encodes a small reference to the style at application location.

If you don’t use track changes or comparison features, disable all the auxiliary data which adds hidden DF (and this hidden DF is out of user control!) in Tools>Options, LO Writer>Comparison by unticking check boxes under Randon number …. Also deactivate track changes by unticking Edit>Track Changes>Show (even when Record is not ticked).

Unfortunately this will not remove existing auxiliary data already present in the document.

If you have a 64 bit operating system then you could install a 64 bit version of LibreOffice. It is a long time since I upgraded to 64 bit. You might like to look at this question which I assume is still relevant, Moving from 32 bit to 64 bit