ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Solofnenko <trel...@gmail.com>
Subject Re: latest <delete> is very slow.
Date Fri, 28 Oct 2005 21:33:44 GMT
This is a Jython script generates about 25K files in 4 level directory
hierarchy. Simple <delete><fileset dir="build/test"/></delete> has been
running for 7 minutes and did not yet complete.

=========================================
# generate
import fileutils
import os

text="some boring text\n"*100

def generate(level, path):
for i in range(1, 20):
fileutils.writeFile(path+'/'+str(i)+'.txt', text)

if level>0:
for i in range(1, 5):
newpath=path+'/'+str(i)
os.mkdir(newpath)
generate(level-1, newpath)

test_dir='build/test'
os.mkdir(test_dir)
generate(5, test_dir)
=================================

I can send you TGZ - it is about 570K.

- Alexey.

On 10/28/05, Alexey Solofnenko <trelony@gmail.com> wrote:
>
> Good idea, I will have one generated. In the real build, there is nothing
> special - I just remove one directory that is about 1GB size and with about
> 21K files. There are 2x2 (hyper threading) processors and during file
> deletion one CPU is at 100%.
>
> - Alexey.
>
> On 10/28/05, Matt Benson <gudnabrsam@yahoo.com> wrote:
> >
> > Alexey, can you send a buildfile to the list (or enter
> > in bugzilla) that will create a file structure that
> > will exhibit the problem?
> >
> > -Matt
> >
> > --- "Alexey N. Solofnenko" < A.Solofnenko@mdl.com>
> > wrote:
> >
> > > It takes about 2 and a half minutes to delete 20K
> > > files with last winter
> > > build, but with the latest ANT build takes about 6
> > > minutes. I do not
> > > know when it started to happen.
> > >
> > > - Alexey.
> > >
> > > --
> > >
> > ------------------------------------------------------------------------
> > > / Alexey N. Solofnenko
> > > home: http://trelony.cjb.net/
> > > /
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > dev-unsubscribe@ant.apache.org
> > > For additional commands, e-mail:
> > > dev-help@ant.apache.org
> > >
> > >
> >
> >
> >
> >
> > __________________________________
> > Start your day with Yahoo! - Make it your home page!
> > http://www.yahoo.com/r/hs
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> > For additional commands, e-mail: dev-help@ant.apache.org
> >
> >
>
>
> --
> Alexey N. Solofnenko trelony at gmail.com <http://gmail.com>
> home: http://trelony.cjb.net/
> Pleasant Hill, CA (GMT-8 hours usually)
>



--
Alexey N. Solofnenko trelony at gmail.com <http://gmail.com>
home: http://trelony.cjb.net/
Pleasant Hill, CA (GMT-8 hours usually)
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message