From: 沈胜宇 <syshen@nudt.edu.cn>
To: caml-list@inria.fr
Subject: [Caml-list] [CAML liist] :: how to reduce depply recursive ocaml program's memory usage
Date: Sat, 6 Apr 2013 15:59:21 +0800 (GMT+08:00) [thread overview]
Message-ID: <388323f0.3cf7.13dde5b5ae6.Coremail.syshen@nudt.edu.cn> (raw)
[-- Attachment #1: Type: text/plain, Size: 325 bytes --]
Dear all:
I have a deeply recursive ocaml program in the following way:
method A begin
calling B
end
method B begin
calling A
end
in A and B, there are lots of local let bindings liek:
let c=... in
let d=f(c)
so by changing it to
let d= begin
let c = ... in
f(c)
end
can I reduce the memory usage?
Shen
[-- Attachment #2: Type: text/html, Size: 640 bytes --]
next reply other threads:[~2013-04-06 8:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-06 7:59 沈胜宇 [this message]
2013-04-09 11:04 ` Goswin von Brederlow
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=388323f0.3cf7.13dde5b5ae6.Coremail.syshen@nudt.edu.cn \
--to=syshen@nudt.edu.cn \
--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