[Cs254f11] Fwd: Faster slurp

Lee Spector lspector at hampshire.edu
Mon Oct 24 20:23:22 EDT 2011



Same thing, but Jack's pointer is more recent:

"clojure.contrib.duck-streams mostly migrated to clojure.java.io" -- from http://dev.clojure.org/display/design/Where+Did+Clojure.Contrib+Go

 -Lee


On Oct 24, 2011, at 8:16 PM, Wm. Josiah Erikson wrote:

> 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
> 
> _______________________________________________
> Cs254f11 mailing list
> Cs254f11 at lists.hampshire.edu
> https://lists.hampshire.edu/mailman/listinfo/cs254f11

--
Lee Spector, Professor of Computer Science
Cognitive Science, Hampshire College
893 West Street, Amherst, MA 01002-3359
lspector at hampshire.edu, http://hampshire.edu/lspector/
Phone: 413-559-5352, Fax: 413-559-5438



More information about the Cs254f11 mailing list