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
Attachment:
signature.asc
Description: PGP signature