Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] c is 4 times faster than ocaml?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ 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

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: