Comment made by: mfikes
With the patch 1. is free.
Benchmarking: 1. }
Before:
Benchmarking with V8
[f (fn [] (cljs.core/into cljs.core.PersistentQueue.EMPTY []))], (f), 100000000 runs, 442 msecs
Benchmarking with SpiderMonkey
[f (fn [] (cljs.core/into cljs.core.PersistentQueue.EMPTY []))], (f), 100000000 runs, 988 msecs
Benchmarking with JavaScriptCore
[f (fn [] (cljs.core/into cljs.core.PersistentQueue.EMPTY []))], (f), 100000000 runs, 2041 msecs
Benchmarking with Nashorn
[f (fn [] (cljs.core/into cljs.core.PersistentQueue.EMPTY []))], (f), 100000000 runs, 47257 msecs
Benchmarking with ChakraCore
[f (fn [] (cljs.core/into cljs.core.PersistentQueue.EMPTY []))], (f), 100000000 runs, 3040 msecs
Benchmarking with GraalVM
[f (fn [] (cljs.core/into cljs.core.PersistentQueue.EMPTY []))], (f), 100000000 runs, 296 msecs
After:
Benchmarking with V8
[f (fn [] cljs.core.PersistentQueue.EMPTY)], (f), 100000000 runs, 0 msecs
Benchmarking with SpiderMonkey
[f (fn [] cljs.core.PersistentQueue.EMPTY)], (f), 100000000 runs, 0 msecs
Benchmarking with JavaScriptCore
[f (fn [] cljs.core.PersistentQueue.EMPTY)], (f), 100000000 runs, 0 msecs
Benchmarking with Nashorn
[f (fn [] cljs.core.PersistentQueue.EMPTY)], (f), 100000000 runs, -1 msecs
Benchmarking with ChakraCore
[f (fn [] cljs.core.PersistentQueue.EMPTY)], (f), 100000000 runs, -5 msecs
Benchmarking with GraalVM
[f (fn [] cljs.core.PersistentQueue.EMPTY)], (f), 100000000 runs, -1 msecs