At Wed, 10 Apr 2013 19:43:46 -0400, Sam Tobin-Hochstadt wrote:
> On Wed, Apr 10, 2013 at 7:26 PM,  <mfl...@racket-lang.org> wrote:
> >
> >                            middle-body ...
> > -                          (let ([new-vec (if (eq? i (unsafe-vector-length 
> vec))
> > +                          (let ([new-vec (if (eq? i (unsafe-vector*-length 
> vec))
> >                                               (grow-vector vec)
> >                                               vec)])
> 
> 
> Instead of fetching the vector length here, couldn't the loop just
> keep track of the current vector size itself?

I haven't tried it, but I think adding a loop argument wouldn't save
anything compared to a single indirection through an existing argument.

_________________________
  Racket Developers list:
  http://lists.racket-lang.org/dev

Reply via email to