Details
-
Type:
Enhancement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Patch:Code
Description
Follow-up to CLJS-178 (the ClojureScript port of Clojure's PersistentHashMap) introducing transient support for PersistentHashMap.
The attached patch applies cleanly on top of the latest transient-less patch from CLJS-178. The code is also viewable on GitHub – here's the current branch:
https://github.com/michalmarczyk/clojurescript/tree/phm2-transient
And here's a jsPerf test comparing PHM vs. THM on the task of building a map of 10000 entries (with THM being twice as fast in Chrome):
http://jsperf.com/cljs-persistent-hash-map-transient-support
Nice, could we add some tests?