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.
Each time project finishes its parsing (not only after initial parsing), fixFakeRegistrations() method is called for each file. This was OK before we introduced repository, since if a file has no fake registrations, the method returned immediately. But ow files do not need to be necessarily in memory. Therefor this operation can take significant time ad cause peak memory consumption. This behavior should be changed.
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