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 RAA18493; Wed, 28 Apr 2004 17:28:37 +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 RAA18169 for ; Wed, 28 Apr 2004 17:28:36 +0200 (MET DST) Received: from web60608.mail.yahoo.com (web60608.mail.yahoo.com [216.109.119.82]) by nez-perce.inria.fr (8.12.10/8.12.10) with SMTP id i3SFSYjq029054 for ; Wed, 28 Apr 2004 17:28:35 +0200 Message-ID: <20040428152813.47355.qmail@web60608.mail.yahoo.com> Received: from [200.137.225.3] by web60608.mail.yahoo.com via HTTP; Wed, 28 Apr 2004 12:28:13 ART Date: Wed, 28 Apr 2004 12:28:13 -0300 (ART) From: =?iso-8859-1?q?Andr=E9=20Luiz=20Moura?= Subject: [Caml-list] Reading a large text file To: caml-list@inria.fr MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1154743823-1083166093=:47196" Content-Transfer-Encoding: 8bit X-Miltered: at nez-perce by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 implemented:01 seus:99 amigos:99 caml-list:01 implemented:01 seus:99 amigos:99 million:98 million:98 ocaml:01 ocaml:01 marker:02 marker:02 wrote:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk --0-1154743823-1083166093=:47196 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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] Thanks, André --------------------------------- Yahoo! Messenger - Fale com seus amigos online. Instale agora! --0-1154743823-1083166093=:47196 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
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:
<vertex #> <x> <y> [attributes] [boundary marker]
Thanks,
André




Yahoo! Messenger - Fale com seus amigos online. Instale agora! --0-1154743823-1083166093=:47196-- ------------------- 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