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 45939 - Opening Servlet file is slower then java file.
Summary: Opening Servlet file is slower then java file.
Status: RESOLVED INVALID
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2004-07-08 16:08 UTC by L Martinek
Modified: 2004-09-02 12:14 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 L Martinek 2004-07-08 16:08:06 UTC
Opening java file in java project if editor is
already opened takes about 500 ms. Opening servlet
file in web project takes about 1400 ms. The
difference should not be so big.
Comment 1 Milan Kuchtiak 2004-08-10 08:03:26 UTC
What does "opening servlet" mean - is that invoking the Open action or
creating a new servlet using wizard ?
In another words - is that problem of wizard or bad implementation of
open action?

In servlet wizard I can imagine some improvements but Open action for
servlet should be exactly the same as Open action for java class as
servlet doesn't have its specific DataObject now.
Comment 2 L Martinek 2004-08-11 13:24:50 UTC
It's opening existing servlet, so without use of wizards.
Comment 3 L Martinek 2004-08-16 15:01:06 UTC
So the 1 sec difference is caused by additional jars in classpath. If
I try to open Servlet in java project with empty classpath it takes
about 500 ms. If I add Servlet API to classpath then opening time
increase to about 1500 ms.
Comment 4 Pavel Buzek 2004-08-16 16:53:19 UTC
it may be related to this (but I have not tested it):

cvs commit -m "47167 do not register the listeners every time a change
even is fired" dd\DDDataObject.java (in directory
E:\nb_all\web\core\src\org\netbeans\modules\web\)
Checking in dd/DDDataObject.java;
/cvs/web/core/src/org/netbeans/modules/web/dd/DDDataObject.java,v  <--
 DDDataObject.java
new revision: 1.47; previous revision: 1.46
done
Comment 5 _ rkubacki 2004-08-23 15:39:20 UTC
I thought that it can parse more than one file (inheritance hierarchy)
but this is not truth in dev build from Aug 23. The AST is created
only for a servlet that is opened.
Comment 6 L Martinek 2004-09-02 11:37:27 UTC
The right cause why the test measured greater time was because test
waited for full editor painting and it included code folding and other
annotations. Without waiting on anottations opening servlet is almost
as fast as opening java.
Comment 7 Milan Kuchtiak 2004-09-02 12:14:00 UTC
Thank you Libor for the detailed investigation.