Bug 76371 - Cutting and pasting slow in I20041013
Summary: Cutting and pasting slow in I20041013
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2004-10-15 12:23 EDT by Michael Valenta CLA
Modified: 2007-06-22 10:04 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Valenta CLA 2004-10-15 12:23:29 EDT
I experienced a noticable delay when performing the following sequence

1) I have a method with a local variable used twice.
2) I renamed he variable by typing, selected it and hit CTRL-C
3) I double-click select each of the references and CTRL-V
4) The editor doesn't actually show any feedback for about 10 seconds (i.e. 
the first reference change gets pasted) and it takes another 5 seconds for the 
second reference to update.

Cutting and pasting should not have this much of a delay (I have not changed 
my Java preferences).

Here's the method where I had the problem. The variable I renamed was 
localTagToMap. The code is in a class that is not yet released to the 
repository but, if requested, I can make it available to reproduce the 
scenario exactly.

    private void fetchLogEntries(CVSCompareSubscriber compareSubscriber, 
SyncInfoSet set, IProgressMonitor monitor) throws CVSException, 
InterruptedException {
        Map localTagMap = getLocalTagMap(set);
        monitor.beginTask(null, 100 * localTagMap.size());
        for (Iterator iter = localTagMap.keySet().iterator(); iter.hasNext();) 
{
            CVSTag localTag = (CVSTag) iter.next();        
	        fetchLogEntries(compareSubscriber, set, localTag, 
Policy.subMonitorFor(monitor, 100));
        }
        Policy.checkCanceled(monitor);
        monitor.done();
    }
Comment 1 Dani Megert CLA 2004-10-18 04:30:16 EDT
I do not understand step 3:
>3) I double-click select each of the references and CTRL-V
The Java editor does not allow multi-selection

Is Java > Editor > Typing, Update imports on paste checked?

Please provide addtional information like VM dumps, build id,... for more
details see:
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-text-home/development/bug-incomplete.htm
Comment 2 Dani Megert CLA 2004-10-18 04:30:52 EDT
Found build info in summary: 20041013.
Comment 3 Dani Megert CLA 2004-10-18 04:45:44 EDT
Some other thing: do you see this after startup or after working for a quite a
while?
Comment 4 Michael Valenta CLA 2004-10-18 10:36:44 EDT
I just started up Eclipse and Cut and Paste was quite responsive so perhaps it 
only happens after Eclipse has been running for a while. I didn't get a trace 
when it happened before so I'll try again later today or tommorrow and add a 
trace when I get one (or close if I cannot reproduce).
Comment 5 Michael Valenta CLA 2004-10-26 09:03:33 EDT
Haven't noticed any problems lately. Closing
Comment 6 Dani Megert CLA 2007-06-22 09:59:14 EDT
Get rid of deprecated state.
Comment 7 Dani Megert CLA 2007-06-22 10:04:31 EDT
.