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

Bug 316322

Summary: [Import/Export] Importing a single file from file system root extremely slow
Product: [Eclipse Project] Platform Reporter: Xiaonan Jiang <xiaonan_jiang>
Component: IDEAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED DUPLICATE QA Contact: Prakash Rangaraj <prakash>
Severity: normal    
Priority: P3 CC: mober.at+eclipse, yurykats
Version: 3.6Keywords: performance
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Xiaonan Jiang CLA 2010-06-09 11:13:05 EDT
Build Identifier: 3.6RC3

From the javacore, looks like the time is spent on traversing the file system. this is unnecessary since the folder and filename can be retrieved from the import wizard.

4XESTACKTRACE                at java/io/WinNTFileSystem.list(Native Method)
4XESTACKTRACE                at java/io/File.list(Bytecode PC:20(Compiled Code))
4XESTACKTRACE                at org/eclipse/ui/internal/ide/filesystem/FileSystemStructureProvider.getChildren(Bytecode PC:20(Compiled Code))
4XESTACKTRACE                at org/eclipse/ui/internal/wizards/datatransfer/MinimizedFileSystemElement.populate(Bytecode PC:9(Compiled Code))
4XESTACKTRACE                at org/eclipse/ui/internal/wizards/datatransfer/MinimizedFileSystemElement.getFiles(Bytecode PC:9(Compiled Code))
4XESTACKTRACE                at org/eclipse/ui/internal/wizards/datatransfer/WizardFileSystemResourceImportPage1$13.getChildren(Bytecode PC:9(Compiled Code))
4XESTACKTRACE                at org/eclipse/ui/model/BaseWorkbenchContentProvider.getElements(Bytecode PC:2(Compiled Code))
4XESTACKTRACE                at org/eclipse/ui/internal/ide/dialogs/ResourceTreeAndListGroup.findAllSelectedListElements(Bytecode PC:54(Compiled Code))
4XESTACKTRACE                at org/eclipse/ui/internal/ide/dialogs/ResourceTreeAndListGroup.findAllSelectedListElements(Bytecode PC:141(Compiled Code))
4XESTACKTRACE                at org/eclipse/ui/internal/ide/dialogs/ResourceTreeAndListGroup.findAllSelectedListElements(Bytecode PC:141(Compiled Code))
4XESTACKTRACE                at org/eclipse/ui/internal/ide/dialogs/ResourceTreeAndListGroup.findAllSelectedListElements(Bytecode PC:141(Compiled Code))
4XESTACKTRACE                at org/eclipse/ui/internal/ide/dialogs/ResourceTreeAndListGroup.findAllSelectedListElements(Bytecode PC:141(Compiled Code))
4XESTACKTRACE                at org/eclipse/ui/internal/ide/dialogs/ResourceTreeAndListGroup.findAllSelectedListElements(Bytecode PC:141)
4XESTACKTRACE                at org/eclipse/ui/internal/ide/dialogs/ResourceTreeAndListGroup.findAllSelectedListElements(Bytecode PC:141)
4XESTACKTRACE                at org/eclipse/ui/internal/ide/dialogs/ResourceTreeAndListGroup.getAllListItems(Bytecode PC:47)
4XESTACKTRACE                at org/eclipse/ui/internal/wizards/datatransfer/WizardFileSystemResourceImportPage1.allItemsAreChecked(Bytecode PC:21)
4XESTACKTRACE                at org/eclipse/ui/internal/wizards/datatransfer/WizardFileSystemResourceImportPage1.importResources(Bytecode PC:1)
4XESTACKTRACE                at org/eclipse/ui/internal/wizards/datatransfer/WizardFileSystemResourceImportPage1.finish(Bytecode PC:73)
4XESTACKTRACE                at org/eclipse/ui/wizards/datatransfer/FileSystemImportWizard.performFinish(Bytecode PC:4)
4XESTACKTRACE                at org/eclipse/jface/wizard/WizardDialog.finishPressed(Bytecode PC:6)
4XESTACKTRACE                at org/eclipse/jface/wizard/WizardDialog.buttonPressed(Bytecode PC:54)
4XESTACKTRACE                at org/eclipse/jface/dialogs/Dialog$2.widgetSelected(Bytecode PC:17)
4XESTACKTRACE                at org/eclipse/swt/widgets/TypedListener.handleEvent(Bytecode PC:1005(Compiled Code))
4XESTACKTRACE                at org/eclipse/swt/widgets/EventTable.sendEvent(Bytecode PC:216(Compiled Code))
4XESTACKTRACE                at org/eclipse/swt/widgets/Widget.sendEvent(Bytecode PC:25(Compiled Code))
4XESTACKTRACE                at org/eclipse/swt/widgets/Display.runDeferredEvents(Bytecode PC:92(Compiled Code))
4XESTACKTRACE                at org/eclipse/swt/widgets/Display.readAndDispatch(Bytecode PC:69(Compiled Code))

Reproducible: Always

Steps to Reproduce:
1. Create a project
2. Right-click a folder and select "Import" menuitem
3. Select "General/File System" and click the "Next" button.
4. Enter "C:\" in the "From directory" folder and press Enter key
5. Select the folder and select a file on the right listbox
6. Click the "Finish" button.

eclipse hangs.
Comment 1 John Arthorne CLA 2010-06-09 12:11:35 EDT
It is not actually a hang, but it does take a long time. I agree it shouldn't need to recursively populate the entire file system model at this point.
Comment 2 Yury Kats CLA 2010-07-30 10:38:05 EDT
This seems to be a dup of bug 312959
Comment 3 Prakash Rangaraj CLA 2010-07-30 12:14:12 EDT
(In reply to comment #2)
> This seems to be a dup of bug 312959

  Yes, you are right.

*** This bug has been marked as a duplicate of bug 312959 ***