exoscale / coax

Clojure.spec coercion library for clj(s)
Other
118 stars 4 forks source link

Add coercer resolution cache ("on" by default) #10

Closed mpenet closed 4 years ago

mpenet commented 4 years ago

This speeds up dramatically coercing, since no spec walking/coercer resolution has to happen more than once per spec+opts. It turns a coerce call into coercer lookup in atom and a single call to (coercer x opts).

I added exoscale.coax/cache? (defaults to true).

By default cache is on. When cache is on you can force cache update via the mentioned option or just skip the cache.