From: kahl@heraklit.informatik.unibw-muenchen.de
To: caml-list@inria.fr
Subject: Re: [Caml-list] Accessing the nth element in a stream takes time quadratic in n
Date: 6 Mar 2001 07:46:40 -0000 [thread overview]
Message-ID: <20010306074640.11704.qmail@dionysos.informatik.unibw-muenchen.de> (raw)
In-Reply-To: <20010306064655.A3629@verdot.inria.fr> (message from Daniel de Rauglaudre on Tue, 6 Mar 2001 06:46:55 +0100)
Daniel de Rauglaudre <daniel.de_rauglaudre@inria.fr> wrote:
> The streams and stream parsers in OCaml parser are not optimized.
I am surprised!
So that's why they allow you only
to go faster than nsgmls (C++),
but not faster than sgmls (C)! ;-)
(I must admit that I usually have ``-inline 25'',
and that the .o/.ml length ratio is unusually high
for the stream parser module.
The experimemnt was, in addition, with a not fully validating parser,
and without part of the entity replacement complexities of SGML.
)
So I still am inclined to consider stream parsers as a fast
and useful alternative.
(But then I haven't tried to define streams recursively...)
The ocamllex/ocamlyacc implemented XML parser ``tony''
posted here quite a while ago could not compare, neither speed-wise,
nor in the size of files it could digest.
(I have never seen an update announcement of tony --- maybe I missed it.)
Wolfram Kahl
kahl@ist.unibw-muenchen.de
http://ist.unibw-muenchen.de/kahl/
-------------------
To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr
prev parent reply other threads:[~2001-03-07 15:54 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
2001-03-06 7:46 ` kahl [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=20010306074640.11704.qmail@dionysos.informatik.unibw-muenchen.de \
--to=kahl@heraklit.informatik.unibw-muenchen.de \
--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