Browse thread
[Caml-list] OCaml Speed for Block Convolutions
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | William Chesters <williamc@p...> |
| Subject: | Re: [Caml-list] OCaml Speed for Block Convolutions |
Markus Mottl writes: > On Mon, 04 Jun 2001, David McClain wrote: > > let dst = Array.unsafe_create nel in > > Are there any intentions to add "unsafe_create" for float arrays to the > standard library? It would be nice to have a function that allocates such > arrays without initializing them - they are not scanned by the GC, anyway. My feeling has always been that the overhead of initialising a float array, per element, is considerably less than the cost of one floating point operation; so if you ever intend to actually use the array for anything, the inefficiency is negligible. On the other hand if we have unsafe_set than unsafe_create is hardly a huge additional bloat, more a kind of natural counterpart. ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr