caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* ocaml and int64
@ 2008-04-02  0:54 Ludovic Coquelle
  2008-04-02  1:50 ` [Caml-list] " Jon Harrop
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Coquelle @ 2008-04-02  0:54 UTC (permalink / raw)
  To: Caml

[-- Attachment #1: Type: text/plain, Size: 528 bytes --]

Hi,

I wrote a direct translation of a simple algo from F# to ocaml.
(details can be found here:
http://khigia.wordpress.com/2008/03/30/ocaml-vs-f-for-big-integer-surprising-performance-test/
)

The compile F# program (12s) is much faster than Ocaml (30s), probably
because the algo do integer arithmetic with Int64 module (thanks to David
for this info).

Have someone here face this kind of problem (optimizing a code doing
arithmetic on big integer)?
Any advice to improve the Ocaml code (without changing the algo)?

Thanks

[-- Attachment #2: Type: text/html, Size: 672 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-04-02  9:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-02  0:54 ocaml and int64 Ludovic Coquelle
2008-04-02  1:50 ` [Caml-list] " Jon Harrop
2008-04-02  9:43   ` Sylvain Le Gall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).