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: | Charles Martin <charles@c...> |
| Subject: | Re: [Caml-list] OCaml Speed for Block Convolutions |
>> > a := !a +. Array.unsafe_get xs i >> a <- a +. Array.unsafe_get xs i At the risk of being off topic, I am wondering why most every code scrap that appears on this list uses [Array|String].unsafe_[get|set], rather than the "safe" versions. Are off-by-one errors and the like so rare? Doesn't adding "-unsafe" as a compiler option to your final build have the same effect? If not, that would be worth knowing. ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr