[plt-scheme] code speed

From: Chongkai Zhu (czhu at cs.utah.edu)
Date: Thu Jan 25 22:10:33 EST 2007

How fast will vector-operation like this one be if we rewrite it in C?


>Try this:
>(define (rvc-srfi-43 v n)
>   (let ([v (vector-copy v)])
>     (vector-reverse! v 0 n)))
>On a vector v of length 1000000 and n=500000 I got a
>factor 10 speed up.
>Jens Axel S?gaard

Posted on the users mailing list.