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 41658 - ClassPathProviderImpl in apisupport/project inefficient
Summary: ClassPathProviderImpl in apisupport/project inefficient
Status: CLOSED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: PERFORMANCE
Depends on: 204773
Blocks:
  Show dependency tree
 
Reported: 2004-04-03 01:00 UTC by Jesse Glick
Modified: 2011-11-15 18:41 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 Jesse Glick 2004-04-03 01:00:37 UTC
NbModuleProject should cache the source and test
directories from call to call.
Comment 1 Jesse Glick 2004-04-03 01:00:59 UTC
Actually pretty annoying in practice.
Comment 2 Jesse Glick 2004-04-22 19:11:34 UTC
Well it now uses a PropertyEvaluator to find the values of the
properties, so the only overhead should be getting the cached property
value from the PE, then calling PropertyUtils.resolveFileObject. That
call however might be slower than is desirable.
Comment 3 Jesse Glick 2004-04-22 19:39:27 UTC
I just tried to speed up PU.rFO by taking a shortcut for the common
case that the path is a simple /-separated relative path. But also
caching some directories in NbModuleProject just in case.
Comment 4 Jesse Glick 2004-04-23 00:02:40 UTC
Hope this is enough:

committed     Up-To-Date  1.33       
apisupport/project/src/org/netbeans/modules/apisupport/project/NbModuleProject.java
Comment 5 Jaromir Uhrik 2005-07-14 16:18:19 UTC
Verified.