From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA03970; Wed, 26 Mar 2003 10:55:04 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA03281 for ; Wed, 26 Mar 2003 10:55:03 +0100 (MET) Received: from hirsch.in-berlin.de (hirsch.in-berlin.de [192.109.42.6]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h2Q9t2f01260 for ; Wed, 26 Mar 2003 10:55:02 +0100 (MET) Received: from hirsch.in-berlin.de (localhost [127.0.0.1]) by hirsch.in-berlin.de (8.12.8/8.12.8/Debian-2) with ESMTP id h2Q9t2Q3031995 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT) for ; Wed, 26 Mar 2003 10:55:02 +0100 Received: from first.UUCP (uucp@localhost) by hirsch.in-berlin.de (8.12.8/8.12.8/Debian-2) with UUCP id h2Q9t1Ya031991 for inria.fr!caml-list; Wed, 26 Mar 2003 10:55:01 +0100 X-Envelope-From: oliver@first.in-berlin.de X-Envelope-To: inria.fr!caml-list Received: by first.in-berlin.de via sendmail from stdin id (Debian Smail3.2.0.114) Wed, 26 Mar 2003 10:52:10 +0100 (CET) From: oliver@first.in-berlin.de (Oliver Bandel) Date: Wed, 26 Mar 2003 10:52:10 +0100 To: caml-list@inria.fr Subject: [Caml-list] Performance-cost of ^ Message-ID: <20030326095209.GA579@first.in-berlin.de> Mail-Followup-To: oliver, caml-list@inria.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline User-Agent: Mutt/1.3.28i X-Spam: no; 0.00; oliver:01 in-berlin:01 bandel:01 stupid:01 ecn:99 inefficient:01 string:03 fold:07 i'm:07 www:91 operations:08 processors:09 split:09 tia:10 performant:13 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, 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?) Or is to better to read in the file with the help of the Buffer-module and split the read file into lines later, if operations on lines are necessary? TIA, Oliver -- Word Processors: Stupid and Inefficient http://www.ecn.wfu.edu/~cottrell/wp.html ------------------- 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