Greg Stein wrote on Sun, May 08, 2011 at 20:14:39 -0400:
> On Sun, May 8, 2011 at 08:46,  <danie...@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

Reply via email to