Bug 49437 - [misc] Paste of Large Source Files takes too long
Summary: [misc] Paste of Large Source Files takes too long
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.0 M7   Edit
Assignee: Tom Hofmann CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2003-12-31 13:30 EST by Randy Secrist CLA
Modified: 2004-01-07 12:49 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Secrist CLA 2003-12-31 13:30:07 EST
Copy and paste seems to be much slower than it was under the 2.x versions of
eclipse.  Normally I wouldn't submit this as a bug, except I have seen it take a
LONG time to finish the paste operation.  (copy finishes quickly).

This works fine for small source files, however when I get to a source file
which is over 6000 lines long, it can take a few minutes for copy and paste to work.

I have verified the slow paste operation with eclipse build M6 using a PC for
both Windows XP and Suse 9.0.
Comment 1 Dirk Baeumer CLA 2004-01-02 19:12:23 EST
I assume that you are using copy/paste in the editor.
Comment 2 Dani Megert CLA 2004-01-05 06:27:10 EST
"Paste for correct indentation" causes this.
Tom, please have a look.

Reduced severity back to normal since there's a workaround (disable the preference).
Comment 3 Tom Hofmann CLA 2004-01-06 06:27:46 EST
see also bug 48753
Comment 4 Tom Hofmann CLA 2004-01-07 12:49:45 EST
fixed, smart paste no longer re-indents the pasted text, but only shifts it to
the correct level.

- the shift value is determined from the second pasted line (as the first one
might not be an entire line).