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 262682 - Initialisation of "Inline Temp" dialog is too slow - should be as fast as Rename/Extract Variable
Summary: Initialisation of "Inline Temp" dialog is too slow - should be as fast as Ren...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-05 09:16 UTC by markiewb
Modified: 2016-07-05 09:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Selfsampler SNAPSHOT (127.67 KB, application/octet-stream)
2016-07-05 09:16 UTC, markiewb
Details
Shows the refactoring preview: It was a really simple inline (160.48 KB, image/png)
2016-07-05 09:18 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2016-07-05 09:16:40 UTC
Created attachment 160263 [details]
Selfsampler SNAPSHOT

* Use a large maven project with many snapshot dependencies (perhaps not the culprit)
* Wait that the IDE has finished scanning
* select a variable within a method and call "inline temp"

ACTUAL: it takes more than 10 seconds to see the refactoring preview. The IDE starts scanning the classpath again. Or there is another reason - see the selfsampler snapshot.

I do not understand, why it is needed or so slow. The classpath seemed to be up to date: Code completion does not start scanning the classpath again. Inline Rename works also fast. Extracting variable is also fast. It is faster to inline it via copy and paste than to use the inline refactoring.

EXPECTED: no scanning is needed, or the scanning time is reduced. Inline is as fast as Rename or Extract.

@Ralph: Can you please have a look at it?

Product Version: NetBeans IDE Dev (Build 201607010002)
Updates: Updates available
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Windows 7 version 6.1 running on amd64; Cp1252; de_DE (nb)
User directory: C:\Users\markiewb\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\markiewb\AppData\Local\NetBeans\Cache\dev
Comment 1 markiewb 2016-07-05 09:18:15 UTC
Created attachment 160264 [details]
Shows the refactoring preview: It was a really simple inline