-
Notifications
You must be signed in to change notification settings - Fork 402
Description
This is a continuation from the message #1778 (IGV desktop app too slow loading from cross account s3)
We are running IGV on XPRA desktop in a platform where the data is AWS S3 bucket mounted/surfaced in the Unix filesystem under a specific path e.g: workspace/data/my_top_level_folder
The issue is some folders in the bucket have a huge amount of files and sub-folders within them. e.g.: 3 thousand folders plus a further 1 thousand files is not uncommon.
With the standard Java FileLoad dialog we witnessed it takes hours to fetch and display the list of files and folders (if at all) and makes the app unuseable. We also noted that running the the unix 'ls' command in a Terminal in the XPRA desktop returns the same list of files and folders within a few seconds.
We have addressed this issue by creating a custom Java Swing File Dialog with an overridden function that fetches the files and folders by calling the ls command
(Process process = new ProcessBuilder("ls", "-1", dir.getAbsolutePath()).start();).
This works extremely well and now the Dialog returns files and folders quickly.
We have deliberately ensured the new dialog box is used only if an environment variable is set?
Can we raise a pull request for this to use this alternative File Dialog implementation. At present we have configured an environment variable to activate it to meet our specific use case.
Note that this fix applies to: File -> Load from File menu option and Genome -> Load Gemone from files menu options only when running in XPRA desktop.