Skip to content

Commit

Permalink
Performance tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
ayato-p committed Dec 3, 2017
1 parent a5f52ea commit a50589a
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions clj/hoge.clj
@@ -1,16 +1,8 @@
(let (let [lines (clojure.string/split-lines
[ lines (slurp "../data.csv" ))]
(seq (dotimes [n 10]
(clojure.string/split-lines
(slurp "../data.csv" ))) ]
(dotimes [ n 10 ]
(time (time
(print (print
(apply (->> lines
max (map #(Long/parseLong (nth (.split ^String % ",") 0)))
(map (reduce max))))))
#(read-string
(nth
(clojure.string/split % #",")
0))
lines))))))

0 comments on commit a50589a

Please sign in to comment.