[Libreoffice] Trying to diagnose base running extremely slowly

Noel Grandin noel at peralex.com
Fri Jan 13 01:36:44 PST 2012


Yeah, but given that such a re-design is probably a long way off, and 
that other drivers seem are confined to a single-thread, and seem to 
have acceptable performance, perhaps we should just live with this 
limitation, and optimise the easy-case?

On 2012-01-13 11:18, Stephan Bergmann wrote:
> 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
>

Disclaimer: http://www.peralex.com/disclaimer.html




More information about the LibreOffice mailing list