Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316322 - [Import/Export] Importing a single file from file system root extremely slow
Summary: [Import/Export] Importing a single file from file system root extremely slow
Status: CLOSED DUPLICATE of bug 312959
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact: Prakash Rangaraj CLA
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2010-06-09 11:13 EDT by Xiaonan Jiang CLA
Modified: 2010-07-30 12:14 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***