From: Richard Jones <rich@annexia.org>
To: Raj Bandyopadhyay <rajb@rice.edu>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Native code compile time question
Date: Sat, 6 Sep 2008 11:01:13 +0100 [thread overview]
Message-ID: <20080906100113.GB13011@annexia.org> (raw)
In-Reply-To: <48C15DA2.6060800@rice.edu>
On Fri, Sep 05, 2008 at 11:26:10AM -0500, Raj Bandyopadhyay wrote:
> On using my code generator on a large program, I generate a file
> containing about 75K lines of OCaml. The native code compiler takes more
> than 30 *minutes* to compile this file! The bytecode compiler takes
> about 5 secs.
Yeah, bitstring suffers from this a little bit too. Not to this
extent, but certainly processing our generated file of kernel parsers
(two levels of generated code) can take 45 seconds whereas a normal
invocation of ocamlopt is sub-second.
Perhaps it's worth just checking that your machine isn't running out
of physical RAM and thrashing. The OCaml garbage collector performs
very badly when this happens.
Rich.
--
Richard Jones
Red Hat
next prev parent reply other threads:[~2008-09-06 10:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-05 16:26 Raj Bandyopadhyay
2008-09-05 21:32 ` [Caml-list] " Basile STARYNKEVITCH
2008-09-05 22:46 ` Jon Harrop
2008-09-05 22:44 ` Jon Harrop
2008-09-06 10:01 ` Richard Jones [this message]
2008-09-06 10:38 ` Christophe TROESTLER
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=20080906100113.GB13011@annexia.org \
--to=rich@annexia.org \
--cc=caml-list@yquem.inria.fr \
--cc=rajb@rice.edu \
/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