Severe performance degradation on Linux

Markus Mohrhard markus.mohrhard at
Tue Dec 30 04:58:00 PST 2014


On Tue, Dec 30, 2014 at 1:50 PM, Jens Tröger <jens.troeger at>

> Connection is not the problem, I have already connected and that took
> far less than a second on localhost.  The code in question is this:
>     start_time = time.time()
>     parenum = document.Text.createEnumeration()
>     while parenum.hasMoreElements() :
>         par = parenum.nextElement()
>     end_time = time.time()
>     print("Elapsed time: " + str(end_time - start_time))
> Unless office attempts to connect "somewhere" (where to, anyway?) the
> reason for the performance drop is elsewhere.  The above loop runs 1s on
> my Mac, and 45s on Linux.  Other test documents show performance
> difference of 3s (Mac) vs 3.45min (Linux).
> If office would attempt (and time-out) to connect while iterating over
> the paragraphs, the runtime would be _much_ worse.
> Jens

You or we can now speculate for a long time or you can just start profiling
what is actually slow. Get a symbols build and run it with callgrind. You
can interpret the results with kcachegrind which will hopefully show what
took so much time and allow you to work on a fix.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the LibreOffice mailing list