Completed
Details
Assignee
David NolenDavid NolenReporter
Oliver GeorgeOliver GeorgePatch
CodeFix versions
Priority
Minor
Details
Details
Assignee
David Nolen
David NolenReporter
Oliver George
Oliver GeorgePatch
Code
Fix versions
Priority
Created May 2, 2017 at 11:52 AM
Updated May 15, 2017 at 12:44 PM
Resolved May 15, 2017 at 12:44 PM
I'm seeing a performance problem with clojurescripts defmulti:
dispatch is slow when there is no match for the dispatch value
slowness increases as the method-table grows ~O
Verified with optimisations :none and :advanced.
Verified not to be an issue for Clojure on JVM.
Example 1: Dispatch and hit
Example 2: Dispatch and miss
Example 3: More methods (x10)