Completed
Details
Details
Assignee
Unassigned
UnassignedReporter
Brandon Bloom
Brandon BloomLabels
Approval
Ok
Patch
Code and Test
Priority
Fix versions
Created June 24, 2013 at 5:10 PM
Updated September 7, 2016 at 8:56 PM
Resolved September 7, 2016 at 8:56 PM
Records do not cache their hash codes like normal Clojure maps, which affects their performance. This problem has been fixed in CLJS, but still affects JVM CLJ.
Approach: Cache hash values in record definitions, similar to maps.
Timings:
coll
1.9.0-master
1.9.0-master+patch
small record
90 ns
7 ns
big record
446 ns
8 ns
Patch: clj-1224-3.patch
Screened by: Alex Miller
Also see: http://dev.clojure.org/jira/browse/CLJS-281