Today if I open a Text, 2 spreadsheets and 1 presentation they all will be running at "soffice.bin" process. If I need work with a huge spreadsheet ( >10 hundred lines, several columns and many formulas) LibreOffice sometimes "freezes" waiting to finish the operation (Column resize, formula update, etc) and this kind of operations take sometimes up to 30min. I know that huge documents sometimes take too long to process and that's will not be a problem for the user if he still can work with others opened documents, but because all LibreOffice documents are all opened in the "soffice.bin" if one document stops/freeze all others documents that I have opened will freeze too. If we could have every document in a different CPU process we will still can work with others documents even if one document is freezed.
Thanks for reporting.
Seems interesting to see some developers input here. I'm not aware if it is possible, and if so how hard it is to implement. (seems quite hard).
But, as far I can see this is a valid request. Therefore I mark it as an enhancement request and NEW.
This would need to make all code thread safe. Which may not be entirely impossible but would take more than huge effort. More promising probably would be to start thread safety where possible and have parts of the applications run in different threads. Specifically for Calc, work is continuously ongoing into that direction, but it will need much work and take much time.
Summing up, the general "one thread per document" is a nice wish, but IMHO not something we need to have to linger around in the bug tracker.
Just my 0.02
And of course starting two instances with different user profiles will help you already with that.
What do you mean with "different user profiles" ? 2 different users, one for each application ? Of course this works but is not usefull, especially on MS Windows.
I think that, starting each app (Calc, Writer, Impress, etc) in a different CPU process, like MS Office does, can be one initial step.
*** Bug 131686 has been marked as a duplicate of this bug. ***
It seems to me that each person commenting on this request has misread what the original poster asked.
They didn't ask for LO to be running in separate threads. They asked if they could each run as a separate process.
If each document is run as a separate process, the code does not need to be thread safe.
I can also add as a Unix programmer since long before threads became a thing, yes, it is extremely normal in the Linux world to create a new process.
As far as I know it, the two main reasons to create separate threads instead of separate processes are:
1) They're all working on the same problem and you want t o reduce context switching time, or
2) You want the threads to communicate a lot, and want to just share memory instead of using any of the many interprocess communication methods.
Of course, the biggest disadvantage of using threads instead of processes is that any kind of data structure corruption in one thread is likely to affect every thread.