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.
Summary: | Don't call fixFakeRegistrations() for *each* file | ||
---|---|---|---|
Product: | cnd | Reporter: | Vladimir Kvashin <vkvashin> |
Component: | Code Model | Assignee: | Vladimir Voskresensky <vv159170> |
Status: | RESOLVED WORKSFORME | ||
Severity: | blocker | ||
Priority: | P4 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Vladimir Kvashin
2007-06-30 10:45:55 UTC
I'm not quite sure it's really a P2. The issue should be investigated; probably investigation will result in downgrading to P3. Note that fixFakeRegistrations() is also called from FileImpl.getDeclarations(). I believe this is incorrect. We should try fixFakeRegistrations() only when file current file depends on become parsed. This is a room for performance improvement, not a defect. the prototype is implemented under flag SKIP_UNNECESSARY_FAKE_FIXES in FileImpl. cvs log: Checking in FileImpl.java; /shared/data/ccvs/repository/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/csm/core/FileImpl.java,v <-- FileImpl.java new revision: 1.2.2.41.4.64.4.39; previous revision: 1.2.2.41.4.64.4.38 done I believe it's a performance defect. Even if a project contains 20,000 files and there are NO fakes, all these 20,000 files will be instantiated each time... no more a problem |