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.
For sample fields.xsd file, there are 10.000 Fold instances, each of them having its own copy of the Description string (typically a tag name). This represent more that 500KB unnecessarily wasted for given sample file.
Marek, can you please evaluate this?
Some weakhashmap caching of the fold descriptions should be implemented. The same was done in the DocumentModel for the DocumentElement-s names and types.
We are not going to implement this caching in the editor infrastructure. You guys know better what descriptions you use for the folds you create and how to cache them efficiently.
Fix integrated: http://hg.netbeans.org/main/rev/26fbf1aa6d3a The fold manager is completely re-written using lexer. It doesn't use the document model anymore.
Fix Verified Product Version: NetBeans IDE Dev (Build 200807101204) Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52 System: Mac OS X version 10.5.4 running on x86_64; MacRoman; en_US (nb)