From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id DC729820A1 for ; Mon, 19 Aug 2013 13:51:39 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of adrien@notk.org) identity=pra; client-ip=91.121.71.147; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="adrien@notk.org"; x-sender="adrien@notk.org"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of adrien@notk.org designates 91.121.71.147 as permitted sender) identity=mailfrom; client-ip=91.121.71.147; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="adrien@notk.org"; x-sender="adrien@notk.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@nautica.notk.org) identity=helo; client-ip=91.121.71.147; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="adrien@notk.org"; x-sender="postmaster@nautica.notk.org"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvICADgGElJbeUeTgWdsb2JhbABbhye8FoEhFg4BARYmKIIkAQEFI1YQCxgCAgUTDgICDwUYMYgnpECQf4EpjzcHgmgzdwOXYwGUczo X-IPAS-Result: AvICADgGElJbeUeTgWdsb2JhbABbhye8FoEhFg4BARYmKIIkAQEFI1YQCxgCAgUTDgICDwUYMYgnpECQf4EpjzcHgmgzdwOXYwGUczo X-IronPort-AV: E=Sophos;i="4.89,913,1367964000"; d="scan'208";a="24235413" Received: from nautica.notk.org ([91.121.71.147]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 19 Aug 2013 13:51:39 +0200 Received: by nautica.notk.org (Postfix, from userid 1003) id C3AECC009; Mon, 19 Aug 2013 13:51:38 +0200 (CEST) Date: Mon, 19 Aug 2013 13:51:38 +0200 From: Adrien Nader To: oliver Cc: caml-list@inria.fr Message-ID: <20130819115138.GA31551@notk.org> References: <20130818204213.GA7482@siouxsie> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20130818204213.GA7482@siouxsie> User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: [Caml-list] Early GC'ing 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) -- Adrien Nader