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 UAA21071; Fri, 27 Sep 2002 20:28:55 +0200 (MET DST) 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 UAA20768 for ; Fri, 27 Sep 2002 20:28:54 +0200 (MET DST) Received: from lobus.fungible.com (adsl-64-161-114-6.dsl.snfc21.pacbell.net [64.161.114.6]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g8RISqD28600; Fri, 27 Sep 2002 20:28:52 +0200 (MET DST) Received: by lobus.fungible.com (Postfix, from userid 1000) id ED67E7FEE; Fri, 27 Sep 2002 11:28:48 -0700 (PDT) Date: Fri, 27 Sep 2002 11:22:31 -0700 From-Tims-Fingers: true To: kgergely@mlabdial.hit.bme.hu Cc: maxence.guesdon@inria.fr, florian@hars.de, caml-list@inria.fr In-reply-to: (kgergely@mlabdial.hit.bme.hu) Subject: Re: [Caml-list] (Sorry for my last post) lazyness, exceptions?, ocaml syntax rule-of-thumbs References: Message-Id: <20020927182848.ED67E7FEE@lobus.fungible.com> From: tim@fungible.com (Tim Freeman) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk >Well, but what about memory usage? >I just miss an iterator, or sg. like that, which reads a line, processes >it, reads next line... Is there a reason not to use streams? I'm not clear on the current limitations of the streams.ml that comes with OCAML (logged as bug 1289), but the improved version at http://www.fungible.com fully implements all of the operations that can get through type checking and can read 10MB/s on my 600 Mhz Pentium III. It ought to be easy to write a function that takes a stream of characters and returns a stream of lines. -- Tim Freeman tim@fungible.com GPG public key fingerprint ECDF 46F8 3B80 BB9E 575D 7180 76DF FE00 34B1 5C78 ------------------- 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