I tried a quick experiment with a directory tree containing 35 directories and 
193 files (total of 73.6MB). My laptop is running Window 7 RC, the network 
share is on a machine running Window Server 2003.

   require 'arc/ziptrees general/dirtrees'

   6!:2 '(jpath ''~temp/netzip.zip'') ziptree 
''\\myserver\myshare\mydir\mydir2\'''
39.5476405115
   6!:2 '(jpath ''~temp/mydir2/'') copytree 
''\\myserver\myshare\mydir\mydir2\'''
10.5033791634
   6!:2 '(jpath ''~temp/netzip2.zip'') ziptree jpath ''~temp/mydir2/'''
20.1517786569

So it took 10 seconds longer to ziptree the network directory, than it took to 
copytree the network directory to a local directory and then ziptree the local 
directory.
Suggests that there might be room for some improvement!

Almost all of ziptrees is about creating the correct arguments for the verb 
zcompress on the 2nd to last line. To get to there is quick (less than 1 
second). The "business" line is:
  tofiles zcompress"1 0 fromfiles

where:
  zcompress=: zwrite~ fread

zwrite is from the arc/zip addon & fread is from the files script.

Suggestions to improve performance are solicited!

> From: Devon McCormick
> 
> Ric - I'm not sure if I've sufficiently narrowed down the causes but it
> appears to start happening after a few hundred meg.  I'm not positive
> that
> this is the crucial factor since I just started doing this en-masse -
> it may
> be just normal end-of-day network slowdown.
> 
> 
> On Wed, Aug 19, 2009 at 2:56 PM, Sherlock, Ric wrote:
> 
> > > From: Devon McCormick
> > >
> > > has anyone used the "ziptree" addon to make zip files out of
> > > directories
> > > over a network?  I'm doing this now and seem to run into some sort
> of
> > > bad
> > > slowdown after it's been humming along for several directories.
> > >
> > > Any insight would be appreciated...
> >
> > I'm not sure I've used it to zip directory trees over a network much.
> Just
> > tried it with a couple of smallish trees over a VPN connection and it
> seemed
> > to work OK.
> > How many directories/files/MB are required before the symptoms
> appear?
> >
> > You could try the general/dirtrees addon and see if that has the same
> > problem.

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to