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 110302 - Making NB unresponsive with only html
Summary: Making NB unresponsive with only html
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords: PERFORMANCE
Depends on: 112464 114016 114230 114238 114312 114330 114359
Blocks:
  Show dependency tree
 
Reported: 2007-07-19 14:55 UTC by tomzi
Modified: 2009-05-18 10:47 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test.html (1.13 MB, application/octet-stream)
2007-07-19 14:55 UTC, tomzi
Details
test_reformat.html (Reformatted verision of test.html) (1.17 MB, text/html)
2007-07-20 08:57 UTC, tomzi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tomzi 2007-07-19 14:55:28 UTC
Open the file attached. Nb will go to CPU load 100% and stays there for quite some time....
Comment 1 tomzi 2007-07-19 14:55:55 UTC
Created attachment 45390 [details]
Test.html
Comment 2 tomzi 2007-07-19 14:56:55 UTC
I only wanted to reformat it...
Comment 3 Jiri Prox 2007-07-19 15:35:39 UTC
I'd say it duplicate of issue 105132
Comment 4 tomzi 2007-07-20 08:55:42 UTC
Opening the file as .txt just works fine - also when I reformated the file (attechment: test_reformat.html, I had to do
that with Notepad++ since even Eclipse couldn't handle the file) it would take just a little while to open, but then I
am able to scroll without a problem.

Comment 5 tomzi 2007-07-20 08:57:37 UTC
Created attachment 45416 [details]
test_reformat.html (Reformatted verision of test.html)
Comment 6 Marek Fukala 2007-07-27 10:50:20 UTC
I do think this is not duplicate of issue #105132 - the issue is about java reformat implementatin.
Comment 7 tomzi 2007-07-30 08:35:23 UTC
I guess nb is not able to handle reallly loooooong lines. Maybe the profiler can help here.
Comment 8 Marek Fukala 2007-08-02 21:58:05 UTC
Wow!, there is so many problems trying to even think about editing of such nice file that I do not know where to start
first :-).

OTOH the file is really huge and IMHO not so typical to be manually edited.

I need more time to evaluate what are the biggest bottlenecks of the editor here. From just brief evaluation I realized
that ages are spend in:
1) rendering of the file - mostly Schlieman's HL
2) parsing of the file by HTML parser and by Schlieman
3) processing of the resulting parse data to AST
4) code folding
5) creation of embeddings based on parser results
...

I cannot promise we can fix them all, but I'll try to find and address more specific problems. I do not expect we will
fix it into beta1. 

Thanks for the report.
Comment 9 Marek Fukala 2007-09-06 13:28:49 UTC
After Vita's fix of issue #114016 the impression of the file editing is much better. Now I can scroll like I want
without a high cpu load.

On of the bottlenecks now seems to be the dynamic embeddings creation and subsequent document repainting which take very
very long time, I'll debug it more deeply soon.
Comment 10 Winston Prakash 2007-09-12 16:33:56 UTC
I too find editing HTML files (especially on Windows Vista) very slow.
Seems better than M10 though.
Comment 11 Marek Fukala 2007-09-24 15:03:20 UTC
The performance is much better than in the beginning => lowering priority to P3.
Comment 12 Winston Prakash 2007-09-25 15:14:02 UTC
I opened a reasonably big HTML page (the same I used earlier), 
the performance is much better now.
Comment 13 Marek Fukala 2007-10-12 19:29:11 UTC
already fixed