[CLJS-795] Enhance multimethod performance Created: 11/Apr/14 Updated: 14/Apr/14 Resolved: 14/Apr/14
Multimethods can be made more performant by implementing (the long list of) IFn methods. There is one benchmark (the last one) covering multimethods in script/benchmark and I saw a drop from ~250msecs to ~25msecs with the suggested changes.
If it seems to be too much repetition I'm sure its possible to throw some macros at the implementation to make most of the boilerplate disappear.
|Comment by David Nolen [ 14/Apr/14 4:29 PM ]|