 
 (comment
   (p/lookup pedestal-tree "/v1/orgs/1/topics")
-  (trie/matcher trie-matcher "/v1/orgs/1/topics")
+  (trie-matcher "/v1/orgs/1/topics")
   #_(segment/lookup segment-matcher "/v1/orgs/1/topics"))
 

    nil routes))

(def trie-matcher
  (trie/compile
    (reduce
      (fn [acc [p d]]
        (trie/insert acc p d))
      nil routes)))

(defn bench! []


  ;; 0.51µs (Cleanup)
  ;; 0.30µs (Java)
  #_(cc/quick-bench
      (segment/lookup segment-matcher "/v1/orgs/1/topics"))

  ;; 0.32µs (initial)
  ;; 0.30µs (iterate arrays)
  ;; 0.28µs (list-params)
  (cc/quick-bench
    (trie-matcher "/v1/orgs/1/topics")))

(comment
  (bench!))
