[racket] gc and vectors

From: Jos Koot (jos.koot at telefonica.net)
Date: Tue Jan 4 12:36:35 EST 2011

I have a simple program using vectors of inexact numbers.
Half the time goes to garbage collection.
I suppose that's because vectors effectively are internally arrays of
pointers to the numbers.
So reassigning an element to a vector may leave garbage.
Do unsafe floating point vectors and operations use arrays without
intermediate pointers?
If that is the case I could speed up my program by a factor of 2.
But before trying that I would appreciate advice.
Thanks, Jos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20110104/5b02ef4d/attachment.html>

Posted on the users mailing list.