mbien opened a new pull request, #9308: URL: https://github.com/apache/netbeans/pull/9308
This is the third PR after https://github.com/apache/netbeans/pull/9303 and https://github.com/apache/netbeans/pull/9307 which improves various other startup bottlenecks which showed up during startup profiling. With all three applied, `Main#start` finishes in about 2400 ms on my system now. todo: add reference value split into 3 commits: `InstalledFileLocatorImpl`: avoid recompiling regex in hot code - `clusterFor()` is called often during startup and flamegraph showed that the regex pattern as bottleneck. -> implement part of the regex by hand so that the constant part can be compiled once. `NbInstaller` hidden pkg and deprecated module computation optimizations - move string.split(regex) into pattern and out of inner loop - avoid loading all (~700) modules into `TreeMap` for the purpose of sorting warning lines which may or may not occur - use 0 copy `Module#getDependenciesArray` - code renovations Startup logger info dump optimization - remove reflective JDK module info query code - print standard ISO date/time to avoid date formatter bootstrap (this alone was almost 50ms) todo: attach flamegraphs -- 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
