Created attachment 53796 [details] Dev-C++ project folder Hello I created a small program that inject dlls in Quickstarter (it support LibreOffice and OpenOffice). It look in the dll_loader_libreoffice.txt file (or dll_loader_openoffice.txt for openoffice) and inject the dlls it found in the Libreoffice soffice.bin process. Currently the dlls in dll_loader_libreoffice.txt are those used by Writter and Calc. For my part, I observed that the first launch start time of Writter and Calc are improved by approximately 50 %. I put the code under GPLv3, feel free to tell me if that makes problem ; I am ready to change ! I attached the entire Dev-C++ project directory, the only important files are : - main.cpp - dll_loader_libreoffice.txt - dll_loader_openoffice.txt To use it just compile it and put a link to dll_loader.exe in your "Start" folder.
Created attachment 53845 [details] the exe with dll_loader_*.txt and licence file
Some users seams to have problem with the GetModuleFileNameEx function. I changed it to GetProcessImageFileName but Dev-C++ can't compile it anymore since it doesn't have this function in his psapi.h. I attached a new folder with the main.cpp file ; both dll_loader_libreoffice.txt and dll_loader_openoffice.txt and licence file. In order to compile it you need to add Psapi.lib and Shlwapi.lib to the linker.
Created attachment 53846 [details] source files
Created attachment 53966 [details] the exe with dll_loader_*.txt and licence file I changed the zip file attached containing the exe cause I didn't know that programs built with visual studio needs the msvcp100.dll to work. I built the new exe with static libs so the user doesn't need to have the dll installed anymore.
For your information this program was developed on a request to Linagora from the "Communauté Urbaine de Bordeaux" (CUB).
Created attachment 58383 [details] new sources and dll list for LO 3.4.5 Here is the new sources that modify the name of the lists files. The LO dll list has been updated for LO 3.4.5.
Hmm, if it indeed is beneficial to load these DLLs right at start of soffice.bin, could you then instead provide a patch to that does that, in the LibreOffice code itself?
Yes, I already thought about that… I planned to do it. But currently I don't have so much time to code for LO and I really prefer coding on other part than the Windows specific ones. I already found some informations about explicit dll loading on the Microsoft web site : http://msdn.microsoft.com/en-us/library/eyd2fc78.aspx http://msdn.microsoft.com/en-us/library/784bt7z7.aspx
we discussed this a bit on the list IIRC, As it stands its not integrateable into stock libreoffice, so someone with an interest and time would have to investigate a bit further