NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 1049 - saving ROIs on a network drive is slow
saving ROIs on a network drive is slow
Status: RESOLVED FIXED
Product: Fiji
Classification: Unclassified
Component: ImageJ1
unspecified
PC Windows
: P4 normal
Assigned To: ImageJ Bugs Mailing List
Depends on:
Blocks:
 
Reported: 2015-04-03 09:52 CDT by deden
Modified: 2015-04-06 15:54 CDT
4 users (show)

See Also:

Description deden 2015-04-03 09:52:56 CDT
Saving a ROI set from the ROI Manager to a windows network drive is slow.

For example 1700 square ROIs (about 270 kB RoiSet.zip file size):
 - saves in less than blink of an eye on local hard drive
 - saves in about 5 seconds on cheapest USB 2.0 FLASH drive
 - saves in about 100 seconds on Windows Network drive (1 GBit link, 60 MByte/s bulk read, 100 MByte/s bulk write).

For comparison, compressing 1700 individual ROI files with Total Commander:
 - takes less than a second when the destination is a local drive
 - takes about 5 seconds  when the destination is a Windows network drive.

Still, ImageJ is unnecessarily slow...

Information about your version of Java:

  os.arch => amd64
  os.name => Windows 7
  os.version => 6.1
  java.version => 1.6.0_24
  java.vendor => Sun Microsystems Inc.
  java.runtime.name => Java(TM) SE Runtime Environment
  java.runtime.version => 1.6.0_24-b07
  java.vm.name => Java HotSpot(TM) 64-Bit Server VM
  java.vm.version => 19.1-b02
  java.vm.vendor => Sun Microsystems Inc.
  java.vm.info => mixed mode
  java.awt.graphicsenv => sun.awt.Win32GraphicsEnvironment
  java.specification.name => Java Platform API Specification
  java.specification.version => 1.6
  sun.cpu.endian => little
  sun.desktop => windows
  file.separator => \

The up-to-date check says: CHECK_TURNED_OFF

Information relevant to JAVA_HOME related problems:

  JAVA_HOME is set to: C:\Programs\Fiji64/java/win64/jdk1.6.0_24//jre
  imagej.dir => C:\Programs\Fiji64

Information about the version of each plugin:

Activated update sites:
ImageJ: http://update.imagej.net/ (last check:20150319131059)
Fiji: http://fiji.sc/update/ (last check:20150319162456)
IJPB-plugins: http://sites.imagej.net/IJPB-plugins/ (last check:20150219053515)

Files not up-to-date:
  1ad3be0d (LOCAL_ONLY) 20141111135036 jars/jpedalSTD.jar
  771730ae (LOCAL_ONLY) 20150305091210 plugins/PFRET/Automatically_Choose_ROI.class
  9f88561d (LOCAL_ONLY) 20150305091210 plugins/PFRET/Automatically_Choose_ROI_v1.class
  66a12824 (LOCAL_ONLY) 20150305091210 plugins/PFRET/Automatically_Choose_ROI_v2.class
  c0d15e4e (LOCAL_ONLY) 20150305091210 plugins/PFRET/Automatically_Choose_ROI_v3.class
  88e0a686 (LOCAL_ONLY) 20150305091210 plugins/PFRET/Background_Subtraction.class
  c42a3849 (LOCAL_ONLY) 20151001091554 plugins/PFRET/FileIO.class
  4b349dd2 (LOCAL_ONLY) 20150305091210 plugins/PFRET/Images_Loader.class
  159bbaef (LOCAL_ONLY) 20150305091210 plugins/PFRET/Ro_Calculation.class
  c24a5cb5 (LOCAL_ONLY) 20150305091210 plugins/PFRET/Sort_File$WildcardFilter.class
  116897a4 (LOCAL_ONLY) 20150305091210 plugins/PFRET/Sort_File.class
  4a981f2d (LOCAL_ONLY) 20150305091210 plugins/PFRET/apFRET_Analysis.class
  373f9a72 (LOCAL_ONLY) 20150305091210 plugins/PFRET/pFRET_Analysis.class
  c1ffc533 (LOCAL_ONLY) 20150305091210 plugins/PFRET/rFRET_Analysis.class
  68fa4608 (LOCAL_ONLY) 20150116185710 plugins/Radial_Profile.class
  5f60d96e (LOCAL_ONLY) 20150118175917 plugins/Watershed_.jar
Comment 1 Wayne Rasband 2015-04-04 14:27:01 CDT
I do not know why saving to a Windows network drive is so slow. I can save 5000 traced ROIs to a WebDAV directory (http://wsr.imagej.net/temp/RoiSet.zip) in less than 8 seconds. In the latest ImageJ daily build (1.49r10), the ROI Manager's "Save..." command displays a progress bar, the time required, the number of ROIs and the file path.
Comment 2 Wayne Rasband 2015-04-05 11:03:08 CDT
In the latest ImageJ daily build (1.49r11), the ROI Manager's "Save..." command uses a BufferedOutputStream, which makes it faster. It now saves 5000 ROIs to a WebDAV directory in 2.5 seconds.
Comment 3 deden 2015-04-05 22:05:23 CDT
works like a charm. thanks.