[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1100726 - /subversion/trunk/tools/dev/benchmarks/large_dirs/create_bigdir.sh

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Mon, 9 May 2011 11:18:24 +0300

Greg Stein wrote on Sun, May 08, 2011 at 20:14:39 -0400:
> On Sun, May 8, 2011 at 08:46, <danielsh_at_apache.org> wrote:
> >...
> > +++ subversion/trunk/tools/dev/benchmarks/large_dirs/create_bigdir.sh Sun May  8 12:46:20 2011
> > @@ -99,6 +99,13 @@ echo
> >  rm -rf $WC
> >  ${SVN} co $URL $WC > /dev/null
> >
> > +# helpers
> > +
> > +get_sequence() {
> > +  # three equivalents...
> > +  (jot - "$1" "$2" "1" 2>/dev/null || seq -s ' ' "$1" "$2" 2>/dev/null || python -c "for i in range($1,$2+1): print i")
>
> If you're invoking Python, then I'd recommend just writing the whole
> thing in Python. (tho... I guess some thing are easier in sh...)
>

I assume C is faster than Python, and this is a benchmark script, so
I went for the unportable-but-faster options where they're available.

> >...
>
> Cheers,
> -g
Received on 2011-05-09 10:20:57 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.