From: Pierre Weis <weis@pauillac.inria.fr>
To: dmakofka@gic.gi.com (Makofka Doug)
Cc: caml-list@pauillac.inria.fr
Subject: Re: output_value
Date: Fri, 20 Oct 1995 20:18:30 +0100 (MET) [thread overview]
Message-ID: <199510201918.UAA24567@pauillac.inria.fr> (raw)
In-Reply-To: <30871CFF@gicpo2.gic.gi.com> from "Makofka, Doug" at Oct 19, 95 08:48:00 pm
> could someone comment on the difference between:
> do_list (output_value chan) ProductionLst
> and
> output_value chan ProductionLst
If you output the entire list at once you preserve sharing between
values (and their subparts) that are in the list. This could make a
big difference. Still, when you input the list its very easy to
iterate on it.
Otherwise, if there is no sharing involved, and if you want to spare the space
occupied by the list cells, output the elements. Then you can input
them one at a time until end_of_file is reached.
(try
while true do f (input_value chan) done
with Eof -> ())
Pierre Weis
----------------------------------------------------------------------------
WWW Home Page: http://pauillac.inria.fr/~weis
Projet Cristal
INRIA, BP 105, F-78153 Le Chesnay Cedex (France)
E-mail: Pierre.Weis@inria.fr
Telephone: +33 1 39 63 55 98
Fax: +33 1 39 63 53 30
----------------------------------------------------------------------------
prev parent reply other threads:[~1995-10-20 19:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-10-20 3:48 output_value Makofka, Doug (HT-MS)
1995-10-20 13:53 ` output_value Christian Boos
1995-10-20 19:18 ` Pierre Weis [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=199510201918.UAA24567@pauillac.inria.fr \
--to=weis@pauillac.inria.fr \
--cc=caml-list@pauillac.inria.fr \
--cc=dmakofka@gic.gi.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