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 225812 - org.netbeans.modules.tasklist.ui.TaskListModel.getRowCount: LowPerformance took 33250 ms.
Summary: org.netbeans.modules.tasklist.ui.TaskListModel.getRowCount: LowPerformance to...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Action Items (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Jan Peska
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2013-02-06 19:29 UTC by marcoancoro
Modified: 2013-02-23 04:11 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 186873


Attachments
nps snapshot (35.63 KB, application/nps)
2013-02-06 19:29 UTC, marcoancoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description marcoancoro 2013-02-06 19:29:04 UTC
Build: NetBeans IDE 7.2 (Build 201207171143)
VM: Java HotSpot(TM) Client VM, 20.10-b01, Java(TM) SE Runtime Environment, 1.6.0_35-b10
OS: Windows XP

User Comments:
arief.setiawan: i know netbeans is great
and it is free..
but, this Freeze IDE while I'm type a little charachters is not comfortable
i wish i can participate to fix this bugs, but i'm still newbie
thanks

GUEST: Open the netbeans

arief.setiawan: another LowPerformance, High CPU Usage

GUEST: I was typing some text in a very short php file, which only has around 15 lines!
There were only 2 Tabs open.

GUEST: Work with code

arief.setiawan: freeze IDE

marcoancoro: saving files

GUEST: start soft



Maximum slowness yet reported was 84557 ms, average is 41348
Comment 1 marcoancoro 2013-02-06 19:29:07 UTC
Created attachment 131070 [details]
nps snapshot
Comment 2 Tomas Hurka 2013-02-08 12:50:49 UTC
Reassigning to tasklist. There is some place for improvement in TaskList class. ArrayList can be replaced by HashMap in setTasks() to speed up contains() and LinkedList(s) can be replaced by ArrayList(s).
Comment 3 Jan Peska 2013-02-20 15:43:43 UTC
fix: http://hg.netbeans.org/core-main/rev/021a121bbfaa
Comment 4 Quality Engineering 2013-02-23 04:11:02 UTC
Integrated into 'main-golden', will be available in build *201302222300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/021a121bbfaa
User: Jan Peska <JPESKA@netbeans.org>
Log: Issue #225812 - org.netbeans.modules.tasklist.ui.TaskListModel.getRowCount: LowPerformance took 33250 ms.
Performance changes. Replace ArrayList by HashSet due to performance issue when calling contains method. Also replace some LinkedLists by ArrayLists - faster iteration.