Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move jacobian inside closure to prevent boxing #43

Merged
merged 1 commit into from
Sep 25, 2018

Conversation

KristofferC
Copy link
Contributor

Before

 88.781 ms (136694 allocations: 23.56 MiB)

After

  80.135 ms (113109 allocations: 14.85 MiB)

@jvaara jvaara merged commit 65722f8 into abstractmaterial Sep 25, 2018
@KristofferC KristofferC deleted the kc/autodiff branch September 25, 2018 16:18
@ahojukka5
Copy link
Member

Boxing?

@KristofferC
Copy link
Contributor Author

KristofferC commented Sep 25, 2018

Boxing is basically wrapping a value in an untyped container so that it can be mutated which has a performance penalty because inference doesnt work anymore.

There is a section in the performance guidelines about it https://docs.julialang.org/en/v1/manual/performance-tips/#man-performance-captured-1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants