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 191842

Summary: Multiple Sources exists for single FileObject
Product: editor Reporter: Tomas Zezula <tzezula>
Component: Parsing & IndexingAssignee: Tomas Zezula <tzezula>
Status: RESOLVED FIXED    
Severity: normal CC: mmirilovic, pjiricka, ppisl
Priority: P2 Keywords: PERFORMANCE
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 185714, 189889    

Description Tomas Zezula 2010-11-11 12:24:11 UTC
The PHP support is slowed down by multiple Sources (SourceCaches, Parsers, Results) existing for single FileObject.
Comment 1 Tomas Zezula 2010-11-11 12:31:31 UTC
Fixed jet-main afecafba372e
Comment 2 Petr Jiricka 2010-11-11 14:57:40 UTC
Marian and I discussed whether this could be put into the beta, but Tomas says it is somewhat risky and he is not confident about the patch. How can it be verified that this did not break anything?
Comment 3 Marian Mirilovic 2010-11-11 15:02:08 UTC
Ok, if I understand it correctly :
- this is fixing just part of the slowness reported in issue 185714
- this fix itself is risky and we haven't tested it yet (and it will rise testing of wide area)

If the above is correct, I vote against integration into NB 7.0 Beta, and leave it only in the trunk.
Comment 4 Tomas Zezula 2010-11-11 15:04:09 UTC
By testing. I believe that the recreation of the Source is not needed, but someone should try.
The testers should do (open java| parsing-api) files during scan. Do changes to it after the scan.
Are the sources valid (the changes are visible)?
Comment 5 Quality Engineering 2010-11-14 06:23:03 UTC
Integrated into 'main-golden', will be available in build *201011140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/afecafba372e
User: Tomas Zezula <tzezula@netbeans.org>
Log: #191842:Multiple Sources exists for single FileObject