[Cs254f11] Fwd: Faster slurp

Jack Laxson jrl11 at hampshire.edu
Mon Oct 24 19:39:10 EDT 2011


gah forgot to reply-all

---------- Forwarded message ----------
From: Jack Laxson <jrl11 at hampshire.edu>
Date: Mon, Oct 24, 2011 at 7:38 PM
Subject: Re: [Cs254f11] Faster slurp
To: "Wm. Josiah Erikson" <wjerikson at hampshire.edu>


Here's what I was doing for longer files if anyone runs into that trouble
with slurp: https://gist.github.com/290c76ab7f58825d584c


On Mon, Oct 24, 2011 at 2:37 PM, Wm. Josiah Erikson <wjerikson at hampshire.edu
> wrote:

> I was having serious problems with the speed of slurp in reading MIDI
> files. I found that the mmap version, clojure.contrib.mmap, which you can
> use by doing something like:
>
> (require '[clojure.contrib.mmap :as mmap])
>
> and then just call it as mmap/slurp
>
> is much faster, as in like ~5 seconds instead of ~60 seconds for the file
> I'm slurping.
>
>
> --
> -----
> Wm. Josiah Erikson
> Network Engineer
> Hampshire College
> Amherst, MA 01002
>
> ______________________________**_________________
> Cs254f11 mailing list
> Cs254f11 at lists.hampshire.edu
> https://lists.hampshire.edu/**mailman/listinfo/cs254f11<https://lists.hampshire.edu/mailman/listinfo/cs254f11>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.hampshire.edu/pipermail/cs254f11/attachments/20111024/284efbcd/attachment.htm>


More information about the Cs254f11 mailing list