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 192097

Summary: CPU usage about 30-50% in big file
Product: php Reporter: nbphpuser <nbphpuser>
Component: EditorAssignee: issues@php <issues>
Status: RESOLVED FIXED    
Severity: normal Keywords: PERFORMANCE
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: thread dump
Example file

Description nbphpuser 2010-11-18 11:31:23 UTC
While editing big files CPU usage about 30-50% (see attachments). Not only CC is slow, writing simple comment line or whatever causes CPU load about 20-30%. Of course, one shouldn't create such big files.

See also Issue http://netbeans.org/bugzilla/show_bug.cgi?id=185714
Comment 1 nbphpuser 2010-11-18 11:32:10 UTC
Created attachment 103062 [details]
thread dump
Comment 2 nbphpuser 2010-11-18 11:33:24 UTC
Created attachment 103063 [details]
Example file
Comment 3 Petr Pisl 2010-11-18 15:50:15 UTC
I have looked through the snapshot and it seems that the bulk of time was spent in the refreshing index. I will look at this more closely.
Comment 4 Petr Pisl 2010-12-06 14:59:03 UTC
I have committed some improvements today for editing bigger files. It should be available in tomorrows build. Could you check it then? Thanks.
Comment 5 Petr Pisl 2010-12-06 16:32:29 UTC
I'm cloing now this issue. Please reopen, if you think that it's not better. I have play with your example file and CPU usage was better during writing.
Comment 6 nbphpuser 2010-12-06 17:05:47 UTC
it is definitely better now! Thanks!

Not sure if it is related #192775
Comment 7 Quality Engineering 2010-12-07 06:12:12 UTC
Integrated into 'main-golden', will be available in build *201012070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/44271f6eb59d
User: Petr Pisl <ppisl@netbeans.org>
Log: #192097 - CPU usage about 30-50% in big file