0bbe35eeec
Introduces a new optimizer pass that can "crack" closures, allowing for more aggressive specialization. It also enables inlining of upvalues that point to immutable global variables. This removes overhead for higher-order functions and currying when arguments are statically resolvable.
6 lines
67 B
Plaintext
6 lines
67 B
Plaintext
;; Output: 5
|
|
(do
|
|
(def f (fn [x] (fn [] x)))
|
|
((f 5))
|
|
)
|