Declined
Details
Assignee
UnassignedUnassignedReporter
Nicola MomettoNicola MomettoLabels
Patch
CodePriority
Minor
Details
Details
Assignee
Unassigned
UnassignedReporter
Nicola Mometto
Nicola MomettoLabels
Patch
Code
Priority
Created November 15, 2014 at 6:14 PM
Updated March 9, 2015 at 7:40 PM
Resolved March 9, 2015 at 7:40 PM
I'm reproposing the fix I implemented for http://dev.clojure.org/jira/browse/CLJ-944 a while ago as an enhancement rather than as a defect.
Currently when a map is used as the value of a `def` expression, unless it's an empty map, it will always be a PersistentHashMap even if it's a small map.
The current patch makes makes small maps be compiled to PAMs, consistently with how it's handled in lexical contexts, only using PHMs when the number of elements is above the threshold