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 192423 - Javadoc code completion performance regression
Summary: Javadoc code completion performance regression
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Javadoc (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Jan Becicka
URL:
Keywords: PERFORMANCE, REGRESSION
Depends on:
Blocks:
 
Reported: 2010-11-24 17:39 UTC by krissco
Modified: 2010-11-26 06:13 UTC (History)
2 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 krissco 2010-11-24 17:39:56 UTC
Product Version: NetBeans IDE Dev (Build 201011240001)
Java: 1.6.0_16; Java HotSpot(TM) Client VM 14.2-b01
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Userdir: C:\Documents and Settings\kjs.DBADMIN\.netbeans\dev

Javadoc code completion (for parameters) is delayed, and interrupts the user.


To reproduce:

1. Create a method with parameters, return values, etc.
public String myTest(String arg1, int arg2, long arg3, Object arg4)
{
    return "test";
}

2. On the line above the method, type "/**[ENTER]"

3. Notice the timing - first the javadoc block comment is created. After a short delay, the parameters are inserted.

4. To see how this is distracting, instead of "/**[ENTER]" type quickly "/**[ENTER]This is a test method". Your "This is a test method" comment will not work nicely with the parameters being added after a delay.

For example: "/**[ENTER]asdf" creates the following:
    /**
     * 
     * @param t
     * @param action
     * @param index
     * @return asdf
     */
    @Override
    public PasteType getDropType(Transferable t, int action, int index)



This delay does not exist in 6.9.1 - this is a regression.
Comment 1 Jan Becicka 2010-11-25 13:59:31 UTC
Changeset: http://hg.netbeans.org/jet-main/rev/dc406cc37c46
Author:    Jan Becicka <jbecicka@netbeans.org>
Date:      2010-11-25 14:54
Message:   Issue #192423 - Javadoc code completion performance regression
Comment 2 Quality Engineering 2010-11-26 06:13:11 UTC
Integrated into 'main-golden', will be available in build *201011260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/dc406cc37c46
User: Jan Becicka <jbecicka@netbeans.org>
Log: Issue #192423 - Javadoc code completion performance regression