#'zipmap constructs a map without transients, where transients could improve performance.
Approach: Use a transient map internally, along with iterators for the keys and values. A persistent map is returned as before. The definition is also moved so that it resides below that of #'transient.
(def xs (range 16384))
(def ys (range 16))
|(zipmap xs xs)||4.50 ms||2.12 ms||large map|
|(zipmap ys ys)||2.75 us||2.07 us||small map|
Screened by: Alex Miller