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.

Bug 117278 - J2MEDataLoader is slow
Summary: J2MEDataLoader is slow
Status: VERIFIED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Adam Sotona
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 114195
  Show dependency tree
 
Reported: 2007-10-01 10:51 UTC by Petr Nejedly
Modified: 2007-10-04 16:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Nejedly 2007-10-01 10:51:32 UTC
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.
Comment 1 Petr Nejedly 2007-10-01 12:31:21 UTC
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).
Comment 2 Adam Sotona 2007-10-01 13:06:10 UTC
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
Comment 3 Petr Nejedly 2007-10-04 16:55:15 UTC
Much better now under the profiler. Still incurs some penalty, but that's the data systems problem in general.