Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 116240

Summary: [Import/Export] Import project wizard is slow
Product: [Eclipse Project] Platform Reporter: Aaron Digulla <digulla>
Component: IDEAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WONTFIX QA Contact:
Severity: minor    
Priority: P5 CC: remy.suen
Version: 3.1.1Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Aaron Digulla CLA 2005-11-14 10:29:04 EST
When importing a file with many files, the displaying of the import takes longer
than the unpacking of the files.

I suggest that you don't display every individual file in the wizard but only
the directories during the import or that you update the display only three
times per second:

long now = System.getCurrentTimeMillis();
if (now > nextRun)
{
    ... show current filename ...

    nextRun = now + 300
}
Comment 1 Dirk Baeumer CLA 2005-11-14 12:33:25 EST
To which "Import Project" are you referring to. There are a couple. 

Moving to Platform/UI since this is either UI or CVS.
Comment 2 Aaron Digulla CLA 2005-11-14 14:29:18 EST
I'm refering to "Import from Filesystem/archive file".
Comment 3 Karice McIntyre CLA 2005-11-15 18:52:16 EST
Approximately how many files are we talking about and how long did it take?  I 
tried importing (from file system) 17,785 files in 3,824 folders and 
the "Importing: <file path>" message only took on the order of 10 secs to first 
appear (meaning the files, started importing in about 10 secs).  The actual 
importing of those files took about 3 mins.  
Comment 4 Aaron Digulla CLA 2005-11-16 14:22:11 EST
I'm talking about the three minutes. Try to print fewer filenames in the wizard
(either by printing only one name per 1/3 second or by printing just the
directories) because the unpacking of the files should need only a few seconds.
Comment 5 Karice McIntyre CLA 2005-11-16 15:17:46 EST
How did you come to the conclusion that it takes longer to display the file 
name in the wizard then it does to actually import it into the workspace?  I 
don't think 3 mins to import 17000+ files is slow at all.  Actually, that time 
seems much faster than it takes for Windows to copy that number of files 
sometimes, or winzip to extract them to a directory.
Comment 6 Aaron Digulla CLA 2005-11-20 11:23:53 EST
It's from my experience with the TextEditor. And at least on X11, rendering text
is quite expensive.

May I suggest that you simply disable the text updates and import the files
again to see how big the difference would be?
Comment 7 Evan Hughes CLA 2007-07-23 15:20:53 EDT
I20070503-1400 exhibits the same behaviour. Importing ~1600 files from the filesystem takes much, much longer than copying via the OS. 
Comment 8 Susan McCourt CLA 2009-07-15 12:13:06 EDT
"As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009"
Comment 9 Eclipse Webmaster CLA 2019-09-06 16:05:23 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 10 Eclipse Genie CLA 2021-08-28 11:17:47 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.