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 199442 - Using native GTK laf. Projects View is slow on node expand
Summary: Using native GTK laf. Projects View is slow on node expand
Status: RESOLVED INCOMPLETE
Alias: None
Product: ide
Classification: Unclassified
Component: Performance (show other bugs)
Version: 7.0.1
Hardware: PC Linux
: P2 normal with 1 vote (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-15 17:20 UTC by mjreged
Modified: 2012-12-01 15:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
gtk-slow-profile (50.82 KB, application/octet-stream)
2011-06-15 17:20 UTC, mjreged
Details
project-view-image (68.33 KB, image/png)
2011-06-15 17:21 UTC, mjreged
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mjreged 2011-06-15 17:20:02 UTC
Created attachment 108914 [details]
gtk-slow-profile

I have attached a self-profile *.nps ide file to help identify the slowdown.

To reproduce:
1) have many subversion based maven project open in the Projects View
2) start expending on the nodes and drill down to leafs.

behavior notes:
while drilling notice the hourglass on the cursor starts to sit longer and longer.
The slow down not always is noticeable immediately, so just keep trying for a while.


Comparison strategy:
To see the performance difference, start NB in Native GTK and absorve.  Then switch the LAF to Nimbus or Metal and repeat the behavior, you should notice the node drilling is so much more responsive.


Final notes:
While the problem is not evident at first, it becomes really cumbersome when working with the IDE over several hours.  

Also please see the image attached for my project view.

Thanks for listening.
Comment 1 mjreged 2011-06-15 17:21:36 UTC
Created attachment 108915 [details]
project-view-image

Image to illustrate the setup, while i navigate around the nodes.
Comment 2 Tomas Hurka 2011-06-16 11:18:00 UTC
Most of the time is spend in 
com.sun.java.swing.plaf.gtk.GTKNativeEngine.nativeFinishPainting[native]()

I am afraid that this cannot be fixed in NetBeans. Which version of the JDK are you using? What is Linux version/distribution?
Comment 3 mjreged 2011-06-16 13:22:50 UTC
I suspected that it could be an issue in the JDK and not Netbeans itself.

I see this behavior on Ubuntu 11.04 x64  and Ubuntu 10.10 x64 bit version.  I do not know if x32 bit version of the OS makes a difference.
Also running on 64bit JDK

>System Info: 
  Product Version         = NetBeans IDE 7.0 (Build 201104080000) (#a693229ccdbb)
  Operating System        = Linux version 2.6.38-8-generic running on amd64
  Java; VM; Vendor        = 1.6.0_25; Java HotSpot(TM) 64-Bit Server VM 20.0-b11; Sun Microsystems Inc.
  Runtime                 = Java(TM) SE Runtime Environment 1.6.0_25-b06
  Java Home               = /opt/impl/jdk1.6.0_25/jre
  System Locale; Encoding = en_US (nb); UTF-8

So what is the next step?
Should I report this issue on OpenJDK issue tracker?
Comment 4 Tomas Hurka 2011-06-17 08:16:25 UTC
(In reply to comment #3)
> I suspected that it could be an issue in the JDK and not Netbeans itself.
Right.

 
> I see this behavior on Ubuntu 11.04 x64  and Ubuntu 10.10 x64 bit version.  I
> do not know if x32 bit version of the OS makes a difference.
It can make a difference, since native GTK L&F is drawn by the OS. 

> Also running on 64bit JDK
> 
> >System Info: 
>   Product Version         = NetBeans IDE 7.0 (Build 201104080000)
> (#a693229ccdbb)
>   Operating System        = Linux version 2.6.38-8-generic running on amd64
>   Java; VM; Vendor        = 1.6.0_25; Java HotSpot(TM) 64-Bit Server VM
> 20.0-b11; Sun Microsystems Inc.
>   Runtime                 = Java(TM) SE Runtime Environment 1.6.0_25-b06
>   Java Home               = /opt/impl/jdk1.6.0_25/jre
>   System Locale; Encoding = en_US (nb); UTF-8
> 
> So what is the next step?
> Should I report this issue on OpenJDK issue tracker?
According to the log, you are not using OpenJDK. You are running on JDK 6 update 25 from Sun/Oracle. You can try latest JDK 7 build from <http://jdk7.java.net/download.html>.
You should be able to submit your bugreport against Sun/Oracle JDK here: <http://bugreport.sun.com/bugreport/>
Comment 5 mjreged 2011-06-27 13:22:23 UTC
I reported the bug against jdk
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7058937.

Just as an additional note:
This performance degradation seems to be at a pretty low level, effecting several rendering components. If resolved this could elevate GTK performance to reasonable levels. I am sure many can feel that GTK rendering on java app feels somewhat sluggish. I guess it also depends on how often you guys actually use netbeans on linux/GTK. My only fear is that the answer might be; not often enough to care.
I also wondered if it could be the native GTK component itself, But I tried IDEA 10.5, spent a day working on our project using the GTK lnf and it ran fine.

I feel that Netbeans development should keep tabs on this bug. While the code might not be in netbeans directly, it still effects your app in a significant way.

Thanks you.