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 114927 - Terrible performance editting an ant script
Summary: Terrible performance editting an ant script
Status: RESOLVED WORKSFORME
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2007-09-06 17:47 UTC by brettbergquist
Modified: 2008-07-22 23:05 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The script that is being editted (81.97 KB, application/octet-stream)
2007-09-06 17:48 UTC, brettbergquist
Details

Note You need to log in before you can comment on or make changes to this bug.
Description brettbergquist 2007-09-06 17:47:44 UTC
NB 6.0 Build 200709040000

The editor is pausing and performance is terrible trying to edit the attached ant script.  The script has a few large
CDATA sections that contains SQL database schema creation code.  

The problem occurs on a freshly booted Dell Latitude D810 2Ghz/2Gb memory machine with nothing else running.
Comment 1 brettbergquist 2007-09-06 17:48:35 UTC
Created attachment 48304 [details]
The script that is being editted
Comment 2 brettbergquist 2007-09-06 17:49:31 UTC
The editor also is trying to present "suggestions" even while in this CDATA section.  Probably the code completion
should be disabled when in a CDATA section...

Comment 3 Jesse Glick 2007-09-06 18:00:41 UTC
I can reproduce some slowness making edits inside the CDATA sections, though it is not crippling on my computer.

Turning off the ant/grammar module has no apparent effect, so I assume this is a general XML editing issue.
Comment 4 Samaresh Panda 2008-01-08 23:06:52 UTC
With Netbeans 6.0, Windows Vista on x86 and JDK1.6.0_03, I do not see such a bad performance, however, I agree that
there should be no CC inside CDATA section.

Would you try this on 6.0 and post your observation.
Comment 5 Samaresh Panda 2008-01-08 23:28:42 UTC
Correction, I did some more tests. There is no CC inside CDATA section. Can you give me a specific example where the CC
brings up "no seggestion" inside CDATA?

Please try 6.0 or later build.
Comment 6 Samaresh Panda 2008-07-22 23:05:45 UTC
Looks much better in 6.5.