From: oliver <oliver@first.in-berlin.de>
To: Adrien Nader <adrien@notk.org>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Early GC'ing
Date: Mon, 19 Aug 2013 14:36:08 +0200 [thread overview]
Message-ID: <20130819123607.GC6203@siouxsie> (raw)
In-Reply-To: <20130819115138.GA31551@notk.org>
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
prev parent reply other threads:[~2013-08-19 12:36 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
2013-08-19 12:36 ` oliver [this message]
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=20130819123607.GC6203@siouxsie \
--to=oliver@first.in-berlin.de \
--cc=adrien@notk.org \
--cc=caml-list@inria.fr \
/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