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 43159 - [perf] First showing of Java editor is very slow
Summary: [perf] First showing of Java editor is very slow
Status: RESOLVED DUPLICATE of bug 44661
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2004-05-12 14:45 UTC by _ rkubacki
Modified: 2007-04-03 18:02 UTC (History)
1 user (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 _ rkubacki 2004-05-12 14:45:26 UTC
reafctoring build from May11, jdk1.4.2_04,
PIII/800MHz/512MB, RH Linux, 2 small projects -
servlet & jsp API from tomcat 5

First open action on Java file takes >9 seconds
(compared to 3-3.5 in trunk build). Tested on
javax.servlet.jsp.PageContext.

The seconds opening takes 1.8-2.7seconds and next
is <1 second. These numbers are similar to trunk.

The problem is also visible when IDE is started
with more opened files when editors are switched.
1st switch takes 2.8s (cf. 1-1.2s in trunk), next
3.5s (cf. 2.7-3s in trunk).
Comment 1 _ rkubacki 2004-05-12 14:58:16 UTC
800 classes are loaded to open 1st Java file. It includes gjast,
javac, Java module, org.openide.text, org.openide.src, editor with
org.netbeans.lib.javac.v8, JMI related classes and some others.
Comment 2 Pavel Flaska 2004-05-17 19:41:00 UTC
Today some improvements related to this bug (but probably not only to
it) were done by our team members:
- optimalization in src hierarchy bridge - resolving types:
Checking in src/org/netbeans/modules/java/bridge/ElementImpl.java;
/cvs/java/src/org/netbeans/modules/java/bridge/Attic/ElementImpl.java,v
 <--  ElementImpl.java
new revision: 1.1.6.9; previous revision: 1.1.6.8
done

- parsing annotations were  done in AWT, it is fixed:
Checking in src/org/netbeans/modules/java/JavaEditor.java;
/cvs/java/src/org/netbeans/modules/java/JavaEditor.java,v
<--  JavaEditor.java
new revision: 1.155.6.15; previous revision: 1.155.6.14
done

Now the first opening of jEdit file on my machine is 2,5-3 times
faster then in Friday build.
Comment 3 Jan Becicka 2004-05-28 13:43:11 UTC
Perf. guys, can you provide fresh numbers, please?

Comment 4 _ rkubacki 2004-05-28 14:39:44 UTC
From what build? I am afraid that trunk build from May 27 is broken
(Alt-Shift-O is quite unusable, offers more instance of the same class
but cannot open them).
Comment 5 Martin Matula 2004-05-28 17:54:09 UTC
For our refactoring build.
Comment 6 Antonin Nebuzelsky 2004-06-09 19:26:21 UTC
New bug about first java file opening entered with fresh numbers for
trunk versus nb36. Closing this one as a duplicate.

*** This issue has been marked as a duplicate of 44661 ***