Please sign in to comment.
The compiler will now emit code to construct ObjMaps for maps with simple keys and up to cljs.compiler/obj-map-threshold entries. -assoc onto ObjMap causes conversion to PersistentHashMap after cljs.core.ObjMap/HASHTABLE_THRESHOLD updates (instances of ObjMap keep their own counts initialized to 0 by cljs.core.ObjMap/fromObject and incremented at each assoc / dissoc). Map literals with complex keys and up to cljs.compiler/array-map-threshold entries now produce PersistentArrayMaps. ObjMap now implements the IEditableCollection protocol, however calls to transient on ObjMaps return TransientHashMap. This commit also removes the deprecation notice previously attached to ObjMap.
- Loading branch information...
Showing with 77 additions and 21 deletions.