Skip to content

Method code too large! #10

@ikitommi

Description

@ikitommi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions