Using SCFunctionAccess::callFunction from Python

Thorsten Behrens thb at libreoffice.org
Tue Mar 11 11:18:16 UTC 2025


Hi Sebastian,

Sebastian Henschel wrote:
> Does anybody know of a faster way how to duplicate a complete document in
> memory? I can post my testing code if you like (not the document, tho).
>
First thing that comes to mind here, is Collabora Online's approach to
run all of the LibreOffice bootstrap code & config parsing - and then
do a fork() of the process, for very quickly spinning up new
instances.

I think you can pre-seed the child root, and perhaps even pre-loading
of a document could be done there:

 https://sdk.collaboraonline.com/docs/architecture.html

It will probably need some customizing though.

Sebastian Henschel wrote:
> > Thanks for your reply. Alas, each of dozens of users would need to have
> > their own instance of the document (possibly multiple) to modify
> > contents and have them recalculated by LibreOffice.
>
Second thing that comes to mind - is pushing this problem to the
client side. That way, every user gets their own copy of the document,
and nothing needs to run on the server, nor request timeouts would be
a concern. Though it probably needs some re-thinking of your client
code...

 https://github.com/allotropia/zetajs

(using the libreoffice wasm port from https://wiki.documentfoundation.org/Development/WASM)

HTH,

-- Thorsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 427 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20250311/5778f7b9/attachment.sig>


More information about the LibreOffice mailing list