caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Daniel de Rauglaudre <daniel.de_rauglaudre@inria.fr>
To: DURAK Berke <durak@ufr-info-p7.jussieu.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Accessing the nth element in a stream takes time quadratic in n
Date: Tue, 6 Mar 2001 06:46:55 +0100	[thread overview]
Message-ID: <20010306064655.A3629@verdot.inria.fr> (raw)
In-Reply-To: <200103052250.XAA17502@amertume.ufr-info-p7.jussieu.fr>; from durak@ufr-info-p7.jussieu.fr on Mon, Mar 05, 2001 at 11:50:55PM +0100

Hi,

On Mon, Mar 05, 2001 at 11:50:55PM +0100, DURAK Berke wrote:

> This happens when streams are defined recursively, as in
> 
> let rec nat_stream n = [< 'n; nat_stream (n + 1) >]
> 
> and the problem holds for streams built of channels or strings, too.

Preprocess by camlp4o (add "-pp camlp4o" among the options of ocamlc or
ocamlopt). The streams and stream parsers in OCaml parser are not
optimized.

-- 
Daniel de RAUGLAUDRE
daniel.de_rauglaudre@inria.fr
http://cristal.inria.fr/~ddr/
-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr


  reply	other threads:[~2001-03-06  5:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-05 22:50 DURAK Berke
2001-03-06  5:46 ` Daniel de Rauglaudre [this message]
2001-03-06  7:46   ` kahl

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=20010306064655.A3629@verdot.inria.fr \
    --to=daniel.de_rauglaudre@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=durak@ufr-info-p7.jussieu.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;
as well as URLs for NNTP newsgroup(s).