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

Get to zero allocations in sampling and dynamics #81

Merged
merged 1 commit into from
Jun 20, 2023
Merged

Conversation

kbarros
Copy link
Member

@kbarros kbarros commented Jun 7, 2023

With @Lazersmoke's recent excellent work in reducing allocations (#78), I think we should push it all the way and ensure through unit tests that sampling and dynamics never allocate. We're not there yet, so this PR is aspirational. Progress can be added as commits on the branch zero-alloc, and we can merge this PR when all tests pass.

For reference, here is how to view where allocations are happening: https://docs.julialang.org/en/v1/manual/profile/#Allocation-Profiler

@kbarros
Copy link
Member Author

kbarros commented Jun 7, 2023

We could move this to a static analysis if aviatesk/JET.jl#286 is resolved.

@kbarros kbarros merged commit 98438ca into main Jun 20, 2023
@kbarros kbarros deleted the zero-alloc branch June 20, 2023 14:16
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.

1 participant