High CPU usage on specific Writer document

Hello everyone,

Today I noticed high CPU usage on specific cores while having a Writer document opened, which drains my laptop battery : power consumption skyrockets from 6W to 25W average.
According to the Linux Mint system monitor, it uses only 5% total CPU, but 80-100% on 1-2 (variating) cores.
The document is about 200 pages long, was originally a .docx, contains a long heading list but very few tables or images.
Changing the GraphicMemorySetting drastically doesn’t help, same for graphics output settings in the View tab.
This issue only appears on one specific document, and I should note I wasn’t experiencing it before.

Any clue about what I could do?

Doc link : Proton Drive
(it includes the doc I talked about (“problematic file”), the original .docx file, and two unrelated docs which have nonetheless similar formatting to the problematic doc)
LO version : latest stable
Linux Mint : latest stable Cinammon
Powerful laptop but usually using the iGPU to preserve battery

You mention a “long heading list”. Does this mean you have consecutive headings without text in-between? If this is the case the Keep with next paragraph attributes creates a long “atomic” bloc (spanning several pages) which Writer has a hard time trying to split.

Waiting for the document in order to analyse it.

Edited the original post with a link towards the doc

Try using a master document (.odm) – this is a container that joins separate text documents (.odt) into a larger document, and unifies the formatting, table of contents (TOC), bibliography, index, and other material.

Master documents are typically used to produce long documents, such as a book, thesis, or long report, and are especially useful in situations such as:

• When the file size or number of pages is quite large; writing, revising, and editing can be easier when done in subsets of the full document.

• When different people are writing different chapters or other parts of the full document.

• When files will be published as separate documents and become part of a larger document.

• When subdocuments are used in more than one final document.

• To change templates for a document – ​​add it to a master document with a different template.

To work, this technique requires both the document and the master document to have styles with the same name.

Tip: Download and read this helpful book: To Tame a Writer | From Mind to Type

1 Like