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 LAA04909; Wed, 26 Mar 2003 11:03:07 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA03650 for ; Wed, 26 Mar 2003 11:03:05 +0100 (MET) Received: from mallaury.noc.nerim.net (smtp-101.noc.nerim.net [62.4.17.101]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h2QA35X07424 for ; Wed, 26 Mar 2003 11:03:05 +0100 (MET) Received: from hector.lesours (lesours.starynkevitch.net [80.65.224.217]) by mallaury.noc.nerim.net (Postfix) with ESMTP id 8EDCA62E4E; Wed, 26 Mar 2003 11:03:04 +0100 (CET) Received: from basile by hector.lesours with local (Exim 3.36 #1 (Debian)) id 18y7kO-00030p-00; Wed, 26 Mar 2003 11:03:04 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <16001.31448.592390.66054@hector.lesours> Date: Wed, 26 Mar 2003 11:03:04 +0100 To: oliver@first.in-berlin.de (Oliver Bandel) Cc: caml-list@inria.fr Subject: [Caml-list] Performance-cost of ^ In-Reply-To: <20030326095209.GA579@first.in-berlin.de> References: <20030326095209.GA579@first.in-berlin.de> X-Mailer: VM 7.13 under Emacs 21.2.2 From: Basile STARYNKEVITCH X-Spam: no; 0.00; basile:01 caml-list:01 oliver:01 bandel:01 in-berlin:01 plateform:01 char:01 faiencerie:01 92340:01 reine:01 nerim:01 tunes:01 bigarray:01 writes:01 unix:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk >>>>> "Oliver" == Oliver Bandel writes: Oliver> Hello, I'm reading in a file linewise. For some Oliver> operations I need it as one long string. [...] Assuming a Unix (or Linux) plateform, I'll suggest to use BigArray.char and BigArray.Array1.map_file which maps the file as an array of chars. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet aliases: basiletunesorg = bstarynknerimnet 8, rue de la Faïencerie, 92340 Bourg La Reine, France ------------------- 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