On Mon, Jul 18, 2011 at 6:01 PM, John Clements
<[email protected]> wrote:
> Does the first one somehow have to check some things that the second one 
> doesn't?

Yes, how long the vector is going to be.

Try:

 (for/vector #:length (* 100 sr) ([i (in-range (* 100 sr))]) 0.243)

which is just as a fast as the `vector-set!' code on my machine.
-- 
sam th
[email protected]
_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev

Reply via email to