From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=AWL,SPF_FAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id EA941BB84 for ; Tue, 17 Feb 2009 11:56:59 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ar4BAMsmmkkmachll2dsb2JhbACURQEBAQEBCBUHvECEEwY X-IronPort-AV: E=Sophos;i="4.38,222,1233529200"; d="scan'208";a="23073738" Received: from mx1.janestcapital.com ([38.105.200.101]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 17 Feb 2009 11:56:59 +0100 Received: from nyc-qsv-mail1.delacy.com ([172.25.22.57]) by mx1.janestcapital.com with esmtp (Exim 4.69) (envelope-from ) id 1LZNdJ-0007Qg-T1 for caml-list@inria.fr; Tue, 17 Feb 2009 05:56:57 -0500 Received: from nyc-qsv-004.delacy.com ([172.25.22.194] helo=qsmtp.delacy.com) by nyc-qsv-mail1.DELACY.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1LZNdJ-00073p-Rx; Tue, 17 Feb 2009 05:56:57 -0500 Received: from lon-qws-008.delacy.com ([172.30.3.108] helo=lon-qws-008) by qsmtp.delacy.com with smtp (Exim 4.63) (envelope-from ) id 1LZNdI-0002Wx-KL; Tue, 17 Feb 2009 05:56:57 -0500 Received: by lon-qws-008 (sSMTP sendmail emulation); Tue, 17 Feb 2009 10:56:56 +0000 From: "Mark Shinwell" Date: Tue, 17 Feb 2009 10:56:56 +0000 To: =?iso-8859-1?Q?R=E9mi?= Dewitte Cc: caml-list@inria.fr Subject: Re: [Caml-list] Re: Threads performance issue. Message-ID: <20090217105656.GF29651@janestcapital.com> References: <2184b2340902160715y1f935b5ehc0e6195b3f75b66b@mail.gmail.com> <891bd3390902160847p25ad3bf1pe59da620dfc667f2@mail.gmail.com> <2184b2340902160937i53b8f3fbga01eaf14ed829f8f@mail.gmail.com> <2184b2340902162340s540c5ac7g9f42b59d03f643cb@mail.gmail.com> <20090217102659.GD29651@janestcapital.com> <2184b2340902170250g75d4482bt1d49e0e295c2e6d7@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2184b2340902170250g75d4482bt1d49e0e295c2e6d7@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Spam: no; 0.00; shinwell:01 0100,:01 2009:98 threads:01 threads:01 wrote:01 caml-list:01 remi:01 buffers:04 anyway:05 tue:06 long:06 feb:08 environment:10 example:10 On Tue, Feb 17, 2009 at 11:50:44AM +0100, Rémi Dewitte wrote: > Hello ! > > Many thanks all for your answers ! > > Managing to have the almost same performance whether in mutithreaded > environment or not (even not using threads for this particular task) is > something I would like to have anyway. > > I'll give a try to big buffers using Using.read. Any example code around ? > And then why not try iao ! Try something straightforward to start with like reading the file just one line at a time? Especially if the lines are long this should give a good improvement. Mark