From: Xavier Leroy <Xavier.Leroy@inria.fr>
To: Alex Baretta <alex@baretta.com>
Cc: "caml-list@inria.fr" <caml-list@inria.fr>
Subject: Re: [Caml-list] "Nasty" functions and memory usage
Date: Thu, 22 Mar 2001 15:22:00 +0100 [thread overview]
Message-ID: <20010322152200.A11178@pauillac.inria.fr> (raw)
In-Reply-To: <3AB2BF73.75CD2B03@baretta.com>; from alex@baretta.com on Sat, Mar 17, 2001 at 02:35:47AM +0100
> So how can the memory usage of the ocaml interpreter be constant
> at 2200Kb?
It can be that it is traversing a data structure with lots of
sharing, while not allocating any long-lived data structure.
Consider for instance the following type:
*
/ \
\ /
*
/ \
...
\ /
*
/ \
'a 'b
It uses little memory, but a full (tree) traversal of it will take
a lot of time.
- Xavier Leroy
-------------------
To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr
prev parent reply other threads:[~2001-03-22 14:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-17 1:35 Alex Baretta
[not found] ` <E14exRm-0001kT-00@ithif51>
2001-03-19 15:25 ` Alex Baretta
2001-03-19 16:01 ` Sebastien Carlier
2001-03-22 14:22 ` Xavier Leroy [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=20010322152200.A11178@pauillac.inria.fr \
--to=xavier.leroy@inria.fr \
--cc=alex@baretta.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