From: Christian Lindig <lindig@eecs.harvard.edu>
To: oliver@first.in-berlin.de
Cc: Caml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] Performance-cost of ^
Date: Fri, 28 Mar 2003 17:21:10 +0100 [thread overview]
Message-ID: <20030328162110.GB548@eecs.harvard.edu> (raw)
In-Reply-To: <6E2CBEC7-5F86-11D7-B838-0003930FCE12@inria.fr>
On Wed, Mar 26, 2003 at 01:28:20PM +0100, Damien Doligez wrote:
> On Wednesday, March 26, 2003, at 10:52 AM, Oliver Bandel wrote:
> >I'm reading in a file linewise. For some operations I need it as one
> >long string.
> >
> >How to acchieve this performant? Is it ok to use ^ for a list of
> >lines (with List.fold_right? or List.fold_left?)
>
> You should use String.concat.
What about using the Buffer module? It sounds like it was especially
designed to build up long strings.
-- Christian
--
Christian Lindig http://www.eecs.harvard.edu/~lindig/
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2003-03-29 8:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-26 9:52 Oliver Bandel
2003-03-26 10:03 ` Basile STARYNKEVITCH
2003-03-26 12:28 ` Damien Doligez
2003-03-28 16:21 ` Christian Lindig [this message]
2003-03-30 10:20 ` Xavier Leroy
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=20030328162110.GB548@eecs.harvard.edu \
--to=lindig@eecs.harvard.edu \
--cc=caml-list@inria.fr \
--cc=oliver@first.in-berlin.de \
/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