-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels