Skip to content

Commit

Permalink
Merge pull request #16057 from JuliaLang/jb/fewerBoxes
Browse files Browse the repository at this point in the history
avoid allocating Boxes in easy cases
  • Loading branch information
JeffBezanson committed Apr 26, 2016
2 parents 063ef32 + 1dbc0cd commit 6d5143c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/julia-syntax.scm
Original file line number Diff line number Diff line change
Expand Up @@ -2716,6 +2716,8 @@ f(x) = yt(x)
(error (string "cannot add method to function argument " name)))
(if (eqv? (string.char (string name) 0) #\@)
(error "macro definition not allowed inside a local scope"))))
(if lam2
(lambda-optimize-vars! lam2))
(if (not local?) ;; not a local function; will not be closure converted to a new type
(cond (short e)
((null? cvs)
Expand Down

0 comments on commit 6d5143c

Please sign in to comment.