[racket-dev] [plt] Push #26609: master branch updated

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Apr 10 19:54:33 EDT 2013

At Wed, 10 Apr 2013 19:43:46 -0400, Sam Tobin-Hochstadt wrote:
> On Wed, Apr 10, 2013 at 7:26 PM,  <mflatt at 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.


Posted on the dev mailing list.