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 101156 - Folds in xml editor have high redundancy in description field
Summary: Folds in xml editor have high redundancy in description field
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on: 125055
Blocks:
  Show dependency tree
 
Reported: 2007-04-16 14:56 UTC by Petr Nejedly
Modified: 2008-07-16 21:26 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Nejedly 2007-04-16 14:56:06 UTC
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.
Comment 1 Samaresh Panda 2007-09-26 02:29:05 UTC
Marek, can you please evaluate this?
Comment 2 Marek Fukala 2007-09-26 08:12:38 UTC
Some weakhashmap caching of the fold descriptions should be implemented. The same was done in the DocumentModel for the
DocumentElement-s names and types.
Comment 3 Vitezslav Stejskal 2007-09-27 12:59:30 UTC
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.
Comment 4 Samaresh Panda 2008-02-08 04:33:03 UTC
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.

Comment 5 tonybeckham 2008-07-16 21:26:01 UTC
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)