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

Dispatches get_tmp on wrapper type of cache, #32

Merged
merged 2 commits into from
Aug 10, 2022

Conversation

thomvet
Copy link
Contributor

@thomvet thomvet commented Aug 10, 2022

removes allocation issue for Base Array, but issue remains for more complex AbstractArray types.
Also, Base Arrays containing dual numbers now don't pass the typeof(...) tests. It seems like they are still usable and I haven't noticed performance losses in my applications, but I thought it's worth mentioning (tests highlighted with @test_broken).

removes allocation issue for Base.Array, but
issue remains for more complex AbstractArray types.
@ChrisRackauckas
Copy link
Member

I think this is fine. I don't think it's possible to unsafe wrap without deleting the allocation of the wrapper. It might be nice to make a Julia Base issue on that (maybe talk with Shuhei, I think he'd have a solution). But returning a SubArray I think is fine.

@ChrisRackauckas
Copy link
Member

Run the formatter.

@thomvet
Copy link
Contributor Author

thomvet commented Aug 10, 2022

Sorry, didn't know how, but it's pleasantly easy!

@ChrisRackauckas ChrisRackauckas merged commit 3de0cde into SciML:master Aug 10, 2022
@thomvet thomvet deleted the allocations branch August 10, 2022 15:00
ChrisRackauckas added a commit to SciML/SciMLSensitivity.jl that referenced this pull request Aug 12, 2022
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.

2 participants