[racket] TR Math Collection

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Thu Aug 9 20:28:21 EDT 2012

The untyped flvector can be significantly faster than a regular vector
that happens to contain floats, since the compiler can avoid boxing
floats in the flvector case. (Not sure what the untyped equivalent of
a (Vectorof Float) is tho.)

Robby

On Thu, Aug 9, 2012 at 7:18 PM, Neil Toronto <neil.toronto at gmail.com> wrote:
> On 08/09/2012 03:08 PM, Ray Racine wrote:
>>
>> I did start with a Vectorof A but figured....
>
>>
>>
>> 4. Less memory since the bulk of data I'm munging loaded in as flat
>> float or int vectors.
>
>
> I hadn't thought of this. Early on, `math/array' had an FlVector-backed
> array, but I tossed it when timing tests showed that it wasn't any faster
> than the current (Strict-Array Float). But your #4 sounds like it might be a
> good reason to have something like it.
>
> FWIW, a (Vectorof Integer) that contains nothing but Fixnums is flat.
>
>
>> I'll try and find some time to swap in your Array A as my underlying and
>> see what happens.
>
>
> Awesome! I'm really interested to know what your experience with it will be.
>
> I'm afraid there's no documentation, yet. :/ On the plus side, the API
> should be pretty stable now.
>
>
> Neil ⊥
>
> ____________________
>  Racket Users list:
>  http://lists.racket-lang.org/users


Posted on the users mailing list.