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 183146 - NbBundle.getMessage() can be slow
Summary: NbBundle.getMessage() can be slow
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2010-03-30 05:07 UTC by orlovpa
Modified: 2013-07-30 11:28 UTC (History)
58 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 154805


Attachments
nps snapshot (256.00 KB, application/nps)
2010-03-30 05:07 UTC, orlovpa
Details
nps snapshot (256.00 KB, application/nps)
2010-04-09 01:46 UTC, Exceptions Reporter
Details
nps snapshot (256.00 KB, application/nps)
2010-04-09 21:42 UTC, misterm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description orlovpa 2010-03-30 05:07:22 UTC
Build: NetBeans IDE 6.8 (Build 200912041610)
VM: Java HotSpot(TM) Client VM, 16.0-b13, Java(TM) SE Runtime Environment, 1.6.0_18-b07
OS: Windows Vista

User Comments:
xpilot: Load IDE with Java Web App project and pressed on triangular near "Databases" item in Services tab



Maximum slowness yet reported was 24011 ms, average is 10260
Comment 1 orlovpa 2010-03-30 05:07:33 UTC
Created attachment 96296 [details]
nps snapshot
Comment 2 Exceptions Reporter 2010-04-09 01:46:04 UTC
Created attachment 96934 [details]
nps snapshot

???????????????????????IDE??????????????????????????????????????????????????????????????????
?????????????????????????????IDE?????????????????????????????????????(???)??????????????????????????NETBEANS?????????????????????????????????????????????????????NB??????ausevil@hotmail.com???????????????????????????Eclipse??????????
Comment 3 misterm 2010-04-09 21:42:31 UTC
Created attachment 96998 [details]
nps snapshot
Comment 4 Stanislav Aubrecht 2010-06-14 14:40:50 UTC
slow native file system calls
Comment 5 Jan Becicka 2013-03-22 12:30:38 UTC
300 reports
Comment 6 Tomas Hurka 2013-07-30 09:06:21 UTC
Most of the slownesses are caused by slow NbBundle.getMessage().
Comment 7 Jaroslav Tulach 2013-07-30 11:28:18 UTC
Report http://statistics.netbeans.org/exceptions/exception.do?id=682807 is a JDK bug where JFileChooser actions are blocked by background sun.awt.shell.Win32ShellFolder2 operation. It has already been reported to JDK team.

http://statistics.netbeans.org/exceptions/exception.do?id=679498 is the NbBundle.getBundle slowness. As far as I can say, the .properties files (and other resources) are properly cached in the JARs - At least org.netbeans.Archive.getData seems to serve all requested resources from its cache on 2nd run.

However, the cache gets turned off when main windows is shown. Any functionality loaded since them will require opening JARs and this may be slow, especially slow when other IOs are running on background. I don't believe there is a way to prevent this right now. Closing.