caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Pixel <pixel@mandrakesoft.com>
To: Luke Gorrie <luke@bluetail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Newbie Ocaml performance questions
Date: Mon,  6 Aug 2001 05:04:16 +0200 (CEST)	[thread overview]
Message-ID: <20010806030416.986D55745@leia.mandrakesoft.com> (raw)
In-Reply-To: Luke Gorrie's message of "06 Aug 2001 04:40:23 +0200"

Luke Gorrie <luke@bluetail.com> writes:

[...]

> - Is there an easy way to measure the number of milliseconds it takes
>   to evaluate a certain expression?

As for me, the best solution to find out which program part takes time is to
call the part twice or thrice and note the difference on the whole program
execution time.
- ocamlcp is nice but doesn't give timings
- the output of gprof is usually very hard to use (mainly due to "cycles")

[...]

> - Can I increase the stack size (for native and bytecode)? It seems to
>   blow out on me at a depth of about 70,000 in simple functions - I'd
>   like to be able to get about 100x deeper.

haha. 

We (Equipe de merd team) had to remove quite a few non tail-recursive
functions to help stay in the stack.

For bytecode, this works:
Gc.set { (Gc.get()) with Gc.stack_limit = 50 * 1024 * 1024 }
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


      reply	other threads:[~2001-08-06  3:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-06  2:40 Luke Gorrie
2001-08-06  3:04 ` Pixel [this message]

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=20010806030416.986D55745@leia.mandrakesoft.com \
    --to=pixel@mandrakesoft.com \
    --cc=caml-list@inria.fr \
    --cc=luke@bluetail.com \
    /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).