[Cs254f11] Fwd: Faster slurp

Wm. Josiah Erikson wjerikson at hampshire.edu
Mon Oct 24 20:16:51 EDT 2011


Also this, apparently: 
http://richhickey.github.com/clojure-contrib/duck-streams-api.html

    -Josiah


Jack Laxson wrote:
> gah forgot to reply-all
>
> ---------- Forwarded message ----------
> From: *Jack Laxson* <jrl11 at hampshire.edu <mailto: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 
> <mailto: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 <mailto: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 <mailto:Cs254f11 at lists.hampshire.edu>
>     https://lists.hampshire.edu/mailman/listinfo/cs254f11
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Cs254f11 mailing list
> Cs254f11 at lists.hampshire.edu
> https://lists.hampshire.edu/mailman/listinfo/cs254f11
>   

-- 
-----
Wm. Josiah Erikson
Network Engineer
Hampshire College
Amherst, MA 01002



More information about the Cs254f11 mailing list