From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 28A29820A1 for ; Mon, 19 Aug 2013 14:36:23 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of oliver@first.in-berlin.de) identity=pra; client-ip=192.109.42.8; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="oliver@first.in-berlin.de"; x-sender="oliver@first.in-berlin.de"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of oliver@first.in-berlin.de) identity=mailfrom; client-ip=192.109.42.8; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="oliver@first.in-berlin.de"; x-sender="oliver@first.in-berlin.de"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@einhorn.in-berlin.de) identity=helo; client-ip=192.109.42.8; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="oliver@first.in-berlin.de"; x-sender="postmaster@einhorn.in-berlin.de"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AicBAAQRElLAbSoIkWdsb2JhbABbhye2W4U7gSEWDgEBAQEJCwsHFAQkgiQBAQUjVhALCQ8CAgUhAgIPBRgxiCMEpEeRAxaBE483B4JoM3cDjx+IRJR0 X-IPAS-Result: AicBAAQRElLAbSoIkWdsb2JhbABbhye2W4U7gSEWDgEBAQEJCwsHFAQkgiQBAQUjVhALCQ8CAgUhAgIPBRgxiCMEpEeRAxaBE483B4JoM3cDjx+IRJR0 X-IronPort-AV: E=Sophos;i="4.89,913,1367964000"; d="scan'208";a="29740150" Received: from einhorn.in-berlin.de ([192.109.42.8]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 19 Aug 2013 14:36:09 +0200 X-Envelope-From: oliver@first.in-berlin.de Received: from first (e178029176.adsl.alicedsl.de [85.178.29.176]) (authenticated bits=0) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id r7JCa8p1001218 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 19 Aug 2013 14:36:08 +0200 Received: by first (Postfix, from userid 1000) id 392C11540135; Mon, 19 Aug 2013 14:36:08 +0200 (CEST) Date: Mon, 19 Aug 2013 14:36:08 +0200 From: oliver To: Adrien Nader Cc: caml-list@inria.fr Message-ID: <20130819123607.GC6203@siouxsie> References: <20130818204213.GA7482@siouxsie> <20130819115138.GA31551@notk.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20130819115138.GA31551@notk.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 Subject: Re: [Caml-list] Early GC'ing On Mon, Aug 19, 2013 at 01:51:38PM +0200, Adrien Nader wrote: > Hi, > > On Sun, Aug 18, 2013, oliver wrote: > > Hello, > > > > in a loop I read in a lot of files, > > from which I just need to collect > > a small portion of the data. > > > > Right after reading and selecting what I needed, > > I don't need any of the read file data. > > The most stuff can just be thrown away. > > > > Have you tried using Bigarray.Array1.map_file? > It should be much faster and allocate pretty much nothing. > (mmap is awesome) [...] I was not aware that mmap-functionality exists in standard OCaml distribution. I would have expected such a binding in Unix-module, and because it's not there, not even mentioned that it exists somewhere else, I thought it's not available. Thanks for the hint. :-) Ciao, Oliver