caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Ludovic Coquelle" <lcoquelle@gmail.com>
To: Caml <caml-list@inria.fr>
Subject: ocaml and int64
Date: Wed, 2 Apr 2008 08:54:54 +0800	[thread overview]
Message-ID: <d6c7b34d0804011754k34acaecfp7de0f27769b829b@mail.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2008-04-02  0:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-02  0:54 Ludovic Coquelle [this message]
2008-04-02  1:50 ` [Caml-list] " Jon Harrop
2008-04-02  9:43   ` Sylvain Le Gall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d6c7b34d0804011754k34acaecfp7de0f27769b829b@mail.gmail.com \
    --to=lcoquelle@gmail.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).