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 220787 - Netbeans delays when highlighting CSS code.
Summary: Netbeans delays when highlighting CSS code.
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Editor (show other bugs)
Version: 7.2.1
Hardware: PC Windows 7 x64
: P3 normal with 1 vote (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-24 21:50 UTC by revisionzero
Modified: 2012-11-22 14:02 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Syntax Highlighting takes a few seconds to load up (97.09 KB, image/png)
2012-10-24 21:50 UTC, revisionzero
Details

Note You need to log in before you can comment on or make changes to this bug.
Description revisionzero 2012-10-24 21:50:37 UTC
Created attachment 126501 [details]
Syntax Highlighting takes a few seconds to load up

Netbeans seems to suffer a performance hit when opening and editing CSS files. 

I've attached a screenshot that shows what happens for a couple seconds after opening a CSS file; the highlighting seems to need a few seconds to take effect. The file I opened was only about 300-400 lines of code.

I could live with that though, but it's annoying when I'm writing a line of CSS code and the highlighting doesn't take effect until a few seconds after I'm finished typing. 

It seems that the larger the file is, the slower it performs. I tried opening a CSS file with over 2000 lines of code and it was even more sluggish.

I doubt this is a hardware issue since I'm running on a multi-core processor with 8GB of memory
Comment 1 Jan Lahoda 2012-10-25 13:24:01 UTC
Probably a parser-based highlighting, not a lexer-based one, reassigning.
Comment 2 Marek Fukala 2012-11-01 15:41:34 UTC
Yes, the css coloring is mostly parser based. Can you please attach the file here or just give it a try in latest dev builds? 

I've addressed some performance issue related to parsing/css source model creation recently so it should help.
Comment 3 Marek Fukala 2012-11-22 14:02:40 UTC
no user feedback, closing as fixed then.