[Libreoffice] Trying to diagnose base running extremely slowly

Stephan Bergmann sbergman at redhat.com
Fri Jan 13 01:18:30 PST 2012


On 01/13/2012 09:59 AM, Noel Grandin wrote:
>
> Surely now that it's confined to a single thread, it can just call
> AttachThread() once at startup, and never need to call DetachThread() ?

Yes, one could improve it further based on the fact that it is confied 
now (it also internally uses some mutices that could go now).  But: 
"However, a better fix would still be to redesign the code so that it 
does not call Attach/DetachCurrentThread so frequently [and confinement 
to the thread-affine apartment can be undone again.]", 
<http://cgit.freedesktop.org/libreoffice/core/tree/connectivity/source/drivers/jdbc/jservices.cxx?id=bb59742bcf4883af5876a2ffadcc4a689e414b60#n95>.

Stephan


More information about the LibreOffice mailing list