[hg] main-silver: minor memory performance optimizations

  • From: Milos Kleint < >
  • To: ,
  • Subject: [hg] main-silver: minor memory performance optimizations
  • Date: Tue, 12 Feb 2013 04:40:32 -0800

changeset 0ee85d4b310b in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/0ee85d4b310b
description:
        minor memory performance optimizations

diffstat:

 
maven.apisupport/src/org/netbeans/modules/maven/apisupport/MavenWhiteListQueryImpl.java
 |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (27 lines):

diff --git 
a/maven.apisupport/src/org/netbeans/modules/maven/apisupport/MavenWhiteListQueryImpl.java
 
b/maven.apisupport/src/org/netbeans/modules/maven/apisupport/MavenWhiteListQueryImpl.java
--- 
a/maven.apisupport/src/org/netbeans/modules/maven/apisupport/MavenWhiteListQueryImpl.java
+++ 
b/maven.apisupport/src/org/netbeans/modules/maven/apisupport/MavenWhiteListQueryImpl.java
@@ -133,6 +133,7 @@
         ProjectSourcesClassPathProvider prov = 
project.getLookup().lookup(ProjectSourcesClassPathProvider.class);
         assert prov != null;
         ClassPath sourceCp = 
prov.getProjectSourcesClassPath(ClassPath.SOURCE);
+        //does not apply to test sources.
         if (!sourceCp.contains(file)) {
             return null;
         }     
@@ -238,6 +239,7 @@
             nonTransitivePackages.addAll(dir.allPackages);
             nonPrivatePackages.addAll(dir.allPackages);
         }
+        directCPs.clear();
         for (NBMWrapper nbm : nbms ) {
             Set<String> allPackages = new HashSet<String>(nbm.allPackages);
             //merge unknowns into their respective wrapper modules..
@@ -279,6 +281,7 @@
                 }
             }
         }
+        nbms.clear();
         
         //now remove all packages from bootclasspath that clash with 
private/transitive packages..
         // happens for javax.swing for example which is part of the 
tabcontrol module

[hg] main-silver: minor memory performance optimizations

Milos Kleint 02/12/2013

Project Features

About this Project

APIsupport was started in November 2009, is owned by Antonin Nebuzelsky, and has 43 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close