From: Adrien Nader <adrien@notk.org>
To: oliver <oliver@first.in-berlin.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Early GC'ing
Date: Mon, 19 Aug 2013 13:51:38 +0200 [thread overview]
Message-ID: <20130819115138.GA31551@notk.org> (raw)
In-Reply-To: <20130818204213.GA7482@siouxsie>
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
next prev parent reply other threads:[~2013-08-19 11:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-18 20:42 oliver
2013-08-18 20:53 ` oliver
2013-08-18 21:14 ` Anthony Tavener
2013-08-18 22:40 ` oliver
2013-08-19 0:20 ` oliver
2013-08-19 6:43 ` Anthony Tavener
2013-08-19 10:34 ` oliver
2013-08-19 11:39 ` Mark Shinwell
2013-08-19 11:51 ` Adrien Nader [this message]
2013-08-19 12:36 ` oliver
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130819115138.GA31551@notk.org \
--to=adrien@notk.org \
--cc=caml-list@inria.fr \
--cc=oliver@first.in-berlin.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox