Hi. I was testing different routing libs and noticed that ataraxy fails on large routing trees:
(require '[ataraxy.core :as ataraxy])
(def aroutes
(ataraxy/compile
(->> (range 100)
(map (partial str "command"))
(mapv (fn [command] [(str "/api/" command) [(keyword command)]]))
(into {}))))
(ataraxy/matches aroutes {:uri "/api/command55"})
; [:command55]
(ataraxy/compile
(->> (range 200)
(map (partial str "command"))
(mapv (fn [command] [(str "/api/" command) [(keyword command)]]))
(into {})))
; CompilerException java.lang.RuntimeException: Method code too large!
tested with 0.4.0.
Hi. I was testing different routing libs and noticed that ataraxy fails on large routing trees:
tested with
0.4.0.