Rename "matcher" to "trie".
This commit is contained in:
parent
af178f6497
commit
6966490f46
|
@ -48,7 +48,7 @@
|
|||
(lambda ()
|
||||
(let loop ((i 0))
|
||||
(when (< i n-probes)
|
||||
(matcher-match-value *the-routes* message-expr)
|
||||
(trie-lookup *the-routes* message-expr)
|
||||
(loop (+ i 1)))))
|
||||
'())))
|
||||
(/ n-probes (/ wallclock-time 1000.0))))
|
||||
|
@ -73,8 +73,8 @@
|
|||
(lambda ()
|
||||
(let inner-loop ()
|
||||
(when (< *count* next-count)
|
||||
(set! *the-routes* (matcher-union *the-routes*
|
||||
(pattern->matcher *count* (list *count* ?))))
|
||||
(set! *the-routes* (trie-union *the-routes*
|
||||
(pattern->trie *count* (list *count* ?))))
|
||||
(set! *count* (+ *count* 1))
|
||||
(inner-loop))))
|
||||
'()))
|
||||
|
|
Loading…
Reference in New Issue