mbien commented on PR #7590:
URL: https://github.com/apache/netbeans/pull/7590#issuecomment-2237076226

   > Hm, I guess originally the warmup was postponed to first project open so 
that it does not slow down startup of the application, but it could be possibly 
prior ergonomics was introduced which inhibits the whole module.
   
   it is still the case. It just triggers the initialization a little bit 
earlier now. One wizard panel earlier to be exact.
   
   When a project is already open, there should be no difference. With no 
project open there won't be any initialization still.
   
   Technically I wouldn't call it warmup, since it is about lazy/eager 
initialization and less of running things to throw them away again.
   
   one day I plan to revisit this again  
https://github.com/apache/netbeans/pull/5638 and check what is still needed and 
what can be optimized for new hardware/software realities.
   
   
   quick way to debug the embedder initialization (I should have added proper 
logging there):
   ```diff
   diff --git 
a/java/maven.embedder/src/org/netbeans/modules/maven/embedder/EmbedderFactory.java
 
b/java/maven.embedder/src/org/netbeans/modules/maven/embedder/EmbedderFactory.java
   index 752f59f..7482909 100644
   --- 
a/java/maven.embedder/src/org/netbeans/modules/maven/embedder/EmbedderFactory.java
   +++ 
b/java/maven.embedder/src/org/netbeans/modules/maven/embedder/EmbedderFactory.java
   @@ -385,8 +385,10 @@
        }
    
        public static @NonNull MavenEmbedder getProjectEmbedder() {
   +        System.out.println("<<<<<<<<<<<<<<<<get>>>>>>>>>>>>>>>>>>>");
            synchronized (PROJECT_LOCK) {
                if (project == null) {
   +                
System.out.println("<<<<<<<<<<<<<<<<init>>>>>>>>>>>>>>>>>>>");
                    try {
                        project = createProjectLikeEmbedder();
                    } catch (PlexusContainerException ex) {
   @@ -394,6 +396,7 @@
                        throw new IllegalStateException(ex);
                    }
                    projectLoaded.set(true);
   +                
System.out.println("<<<<<<<<<<<<<<<<done>>>>>>>>>>>>>>>>>>>");
                }
                return project;
            }
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to