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

From: Sam Tobin-Hochstadt (samth at ccs.neu.edu)
Date: Wed Apr 10 19:43:46 EDT 2013

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?


Posted on the dev mailing list.