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 SAA05627; Wed, 28 Apr 2004 18:28:17 +0200 (MET DST) 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 SAA05616 for ; Wed, 28 Apr 2004 18:28:16 +0200 (MET DST) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i3SGSFYM024448 for ; Wed, 28 Apr 2004 18:28:15 +0200 Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1BIrux-0006Nq-00 for ; Wed, 28 Apr 2004 17:28:15 +0100 Date: Wed, 28 Apr 2004 17:28:15 +0100 Cc: caml-list@inria.fr Subject: Re: [Caml-list] Reading a large text file Message-ID: <20040428162815.GA24500@redhat.com> References: <20040428152813.47355.qmail@web60608.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040428152813.47355.qmail@web60608.mail.yahoo.com> User-Agent: Mutt/1.5.5.1+cvs20040105i From: Richard Jones X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 2004:99 caml-list:01 implemented:01 ltd:98 million:98 ocaml:01 marker:02 0300,:02 wrote:03 wrote:03 configurable:03 perl:03 vertex:04 executing:04 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, Apr 28, 2004 at 12:28:13PM -0300, Andr? Luiz Moura wrote: > Hi List, > > I wrote an OCaml function to read a text file with a million of lines with five separate columns for spaces. I based myself on previous messages of Caml-list, but however the work is taking time frightful (many minutes). > This function written in C, for example, does not take more than 4 seconds. > > I am executing the program in a PC Pentium III of 128 MB of RAM under Windows platform. How would be implemented the function to decide this problem? > > File format: > [attributes] [boundary marker] Post some example code? Rich. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd. http://www.merjis.com/ - improving website return on investment NET::FTPSERVER is a full-featured, secure, configurable, database-backed FTP server written in Perl: http://www.annexia.org/freeware/netftpserver/ ------------------- 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