This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
J2MEDataLoader traverses a folder hierarchy until it finds a project root and then parses corresponding project.xml to recognize its own project types. While it employs some caching, it does so only in positively identified projects (that is, J2SE projects are hurt more) and only after traversing the path to the project root. This slows down folder expansion significantly, as the same logic is employed for each file in the package. Bulk recognitions (folder expand) could therefore be heavily sped up by caching the resolution for the first parent folder. On a given test case, J2MEDataLoader consumes about 500ms out of ~3500ms for the recognition phase.
This is one of the biggest contributors of the expand folder time, together with (similar) issue 117288. Setting the two issues as P2 (as is the umbrella issue).
implemented weak folder caches (positive and negative) /cvs/mobility/project/src/org/netbeans/modules/mobility/project/J2MEProject.java,v <-- J2MEProject.java new revision: 1.25; previous revision: 1.24
Much better now under the profiler. Still incurs some penalty, but that's the data systems problem in general.