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.
Uncovered by MemoryLint. All FoldInfos for single file are in the same bucket. If no better hashCode can be provided (quite likely case, as the FoldInfos use Positions), avoid using HashMap and rather keep the data in a sorted collection/map. The fix is probably not necessary for 6.0, though it may contribute to worse performance of editing large files.
I agree it is not nice, and actually this whole provider should be improved (ideally also the fold API should be improved :-) ), and it is possible that this might contribute to worse performance. OTOH (and IIRC :-) ) it never showed up on any measurement we did - making P4. If there is any measurement that shows that the folds contribute to lags, etc., please adjust the priority accordingly. Thanks.
Later, unless it proves to be a problem visible for users.
NetBeans.org Migration: changing resolution from LATER to WONTFIX
Integrated into 'main-golden', will be available in build *201104170401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/678e6f67c70e User: Jan Lahoda <jlahoda@netbeans.org> Log: #116352: more efficient diffing&committing of (Java) folds.