Closed sonwh98 closed 8 years ago
First I've heard about this. My guess is it's something to do with your environment and how it handles errors, rather than anything to do with schema. What happens if you just throw an exception rather than calling s/validate
?
oh you're right. I was testing it in the boot.cljs clojurescript repl. (js/throw "foo") also takes a long time
validate returns immediately when the type matches. However, if it doesn't match like the above, it takes a 20 seconds to return the error message. Is this normal?
validate returns quickly when there's an error in Clojure. The slowness is only in ClojureScript