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 197892 - Slow editing of HTML with complex table (120 rows x 11 columns)
Summary: Slow editing of HTML with complex table (120 rows x 11 columns)
Status: RESOLVED DUPLICATE of bug 197534
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.0
Hardware: PC Linux
: P2 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2011-04-20 09:51 UTC by Jiri Kovalsky
Modified: 2011-06-08 11:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Full thread dump when IDE was slowly refreshing editor's contents. (13.27 KB, text/plain)
2011-04-20 09:51 UTC, Jiri Kovalsky
Details
Stripped down version of the HTML page. (50.06 KB, text/html)
2011-05-03 07:51 UTC, Jiri Kovalsky
Details
Netbeans snapshot taken during the text selection (27.55 KB, application/octet-stream)
2011-05-05 11:00 UTC, Marek Fukala
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2011-04-20 09:51:56 UTC
Created attachment 107856 [details]
Full thread dump when IDE was slowly refreshing editor's contents.

Product Version: NetBeans IDE 7.0 (Build 201104080000)
Java: 1.6.0_25; Java HotSpot(TM) Client VM 20.0-b11
System: Linux version 2.6.35-22-generic running on i386; UTF-8; cs_CZ (nb)
Userdir: /home/cesilko/.netbeans/7.0

When I am locally editing web page with activity comparison of NetCAT 7.0 participants [1] I face significant delays on my Linux Mint 10 running on decent 4 cores CPU at 2.67GHz with 3.7 GB RAM.

[1] http://qa.netbeans.org/processes/cat/70/activity.html

For example when I place cursor at position 34:1 and press Shift+Arrow Down to select all table rows line by line, the selection is not instant and jumps by 5-10 lines. The same happens if I only want move cursor down/up.

I am attaching a thread dump taken when the IDE was doing something behind the scenes. I hope it's satisfactory.
Comment 1 Marek Fukala 2011-05-03 07:49:01 UTC
Please attach the edited file itself since the link points to the complex netbeans page with all the footers and headers.
Comment 2 Jiri Kovalsky 2011-05-03 07:51:34 UTC
Created attachment 108068 [details]
Stripped down version of the HTML page.

If you need the HTML code without the fancy netbeans.org wrapping here it is.
Comment 3 Marek Fukala 2011-05-05 10:58:59 UTC
The scenario you described is reproducible - the text selection is very slow for me as well. I've made a threads snapshot and there's only editor repainting happening => reassigning to Mila.
Comment 4 Marek Fukala 2011-05-05 11:00:37 UTC
Created attachment 108129 [details]
Netbeans snapshot taken during the text selection
Comment 5 Miloslav Metelka 2011-05-05 12:38:15 UTC
I'm working on a performance improvement for NB 7.0.1 for the view hierarchy that will separate highlighting layers that do not change font metrics and so things like selection changes will no longer request views rebuilding.
 After that I will look at other things in the nps like actions refreshing in EditorUI and AnnotationHolder among others.
Comment 6 Miloslav Metelka 2011-06-08 11:30:59 UTC
View hierarchy performance improvements will be integrated in terms of issue #197534.

*** This bug has been marked as a duplicate of bug 197534 ***