Browse thread
[Caml-list] c is 4 times faster than ocaml?
[
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: | effbiae@i... |
| Subject: | Re: [Caml-list] c is 4 times faster than ocaml? |
oooh - a gmail account :) > this artificial (and incredibly hard to read) benchmark program was the C hard to read or the O'Caml? Any style tips for my caml? > First, even with -unsafe, bounds checking is performed on BigArray > types. if i write a c extension that mmaps and msyncs then will the vector element assignment become a call rather than a movb (or movl)? that is, is Bigarray a 'special' c extension that ocaml knows how to optimize and access just like C or is it a c extension that i can model my C extension code on? > If you were working on integers instead, I think it might be less > painful. Especially if you could use int32s held in registers > to index into things. can i specify that an int32 is held in a register or does the compiler do this? ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners