loader.loadComponentFromURL works slow when we are restoring CALC sheet from byte array | loader.loadComponentFromURL

Stephan Bergmann sbergman at redhat.com
Mon May 21 03:03:20 PDT 2012


On 05/21/2012 10:28 AM, Michael Meeks wrote:
> 	I assume this is from C++ (?) anything else would of course cause tons
> of bridging overhead in the streams.

 From the code, it looks more like they are using Java, presumably from 
a remote process.  So any data from the buffer needs to be marshalled 
through (remote) UNO to OOo/LO's C++ side.  What can potentially reduce 
throughput there is if the C++ side calls XInputStream.readBytes in 
small instead of large chunks, but I don't know the implementation 
details of the relevant Calc import code.

Stephan


More information about the LibreOffice mailing list