Skip to content

Commit

Permalink
Make vt/get-params 2x faster
Browse files Browse the repository at this point in the history
  • Loading branch information
ku1ik committed Dec 28, 2016
1 parent dea80a7 commit 8d916b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/asciinema/vt.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
(map reduce-param groups)))))

(defn get-params [vt]
(get-cached-params (get-in vt [:parser :param-chars])))
(get-cached-params (-> vt :parser :param-chars)))

(defn get-param [vt n default]
(let [v (nth (get-params vt) n 0)]
Expand Down

0 comments on commit 8d916b2

Please sign in to comment.