desktop/inc/app.hxx         |    2 +-
 desktop/source/lib/init.cxx |    3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 4b224658980087558706968c19a8170ecef5620b
Author:     Michael Meeks <[email protected]>
AuthorDate: Mon Apr 1 15:39:00 2024 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Mon Apr 1 22:04:33 2024 +0200

    lok preinit: don't re-synchronize extensions on each child start.
    
    We should sort out our extensions, if at all, at pre-init time.
    This should save ~4% of CPU in a week-long profile of a COOL server.
    From Desktop::Main's SynchronizeExtensionRepositories.
    
    Change-Id: I2760de26635723492dfa5a52005ee90623337bee
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165639
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Tested-by: Caolán McNamara <[email protected]>
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/desktop/inc/app.hxx b/desktop/inc/app.hxx
index 9d6ac9864a52..0c96240f1b0d 100644
--- a/desktop/inc/app.hxx
+++ b/desktop/inc/app.hxx
@@ -69,7 +69,7 @@ class Desktop final : public Application
 
                                 Desktop();
                                 virtual ~Desktop() override;
-        virtual int             Main( ) override;
+        virtual int             Main() override;
         virtual void            Init() override;
         virtual void            InitFinished() override;
         virtual void            DeInit() override;
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 68191600f0f8..bfe4ff5fd699 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -7527,6 +7527,9 @@ static void preloadData()
     if(bAbort)
         std::cerr << "CheckExtensionDependencies failed" << std::endl;
 
+    // inhibit forced 2nd synchronization from Main
+    ::rtl::Bootstrap::set( "DISABLE_EXTENSION_SYNCHRONIZATION", "true");
+
     std::cerr << "Preload textencodings"; // sal_textenc
     // Use RTL_TEXTENCODING_MS_1250 to trigger Impl_getTextEncodingData
     // to dlopen sal_textenclo

Reply via email to