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 224903 - Inefficient org.openide.util.RequestProcessor$Item.clear()
Summary: Inefficient org.openide.util.RequestProcessor$Item.clear()
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2013-01-15 12:12 UTC by Tomas Hurka
Modified: 2013-03-20 13:21 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Hurka 2013-01-15 12:12:19 UTC
It looks like org.openide.util.RequestProcessor$Item.clear() can consume a lot of time, when there is a long queue of waiting tasks. For details see .npss snapshot attached to bug #223865. In this snapshot, 69% of the time is spent in org.openide.util.RequestProcessor$Item.clear() in 'Maven Repository SFBQ result change' thread.
Comment 1 Jaroslav Tulach 2013-02-13 08:49:35 UTC
ergonomics#c12aaf8dd333
Comment 2 Quality Engineering 2013-02-16 01:54:07 UTC
Integrated into 'main-golden', will be available in build *201302152300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c12aaf8dd333
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #224903: Inefficient org.openide.util.RequestProcessor$Item.clear()
#224903: Replacing LinkedList by SortedSet. It is enough to just insert into the set. Prioritizing happens due to compareTo
Comment 3 Vladimir Voskresensky 2013-02-26 10:14:24 UTC
we observe it in enterprise customer env and need to be integrated into 73 patch (to allow release Studio Patch)
Comment 4 Tomas Danek 2013-03-11 15:54:21 UTC
Vladimir (or Tomas H.) - can you please verify fix in dev build in order to backport to 73patch1? Thanks in advance.
Comment 5 Vladimir Voskresensky 2013-03-11 16:04:36 UTC
customer verified it
Comment 6 Jiri Rechtacek 2013-03-14 15:02:24 UTC
http://hg.netbeans.org/releases/rev/e8fe1422f92f
Comment 7 Quality Engineering 2013-03-14 21:12:25 UTC
Integrated into 'releases', will be available in build *201303141828* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/e8fe1422f92f
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #224903: Inefficient org.openide.util.RequestProcessor$Item.clear()
#224903: Replacing LinkedList by SortedSet. It is enough to just insert into the set. Prioritizing happens due to compareTo
Comment 8 Tomas Danek 2013-03-20 13:21:02 UTC
desired changeset is correctly backported to releases73.  Anyway confirmation of verification in latest 7.3 daily would be appreciated.