performance of clojure.contrib.mmap
(def my-file (File. "/home/aim/largelog.bin")) (defn my-iterate-map [buf] (let [max (.remaining buf)] (loop [i (long 1)] (if (< i max) (do (.get buf) (recur (unchecked-inc i)) buf) (time (my-iterate-map (mmap my-file))) The re
Re: performance of clojure.contrib.mmap
Here's my second attempt. I fixed one obvious bug but it was the addition of the type "#^ByteBuffer" that made a *huge* difference. The times now look something like: Compile file /home/aim/src/clojure/foo.clj ... "Elapsed time: 64.273962 msecs" "Elapsed t