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

minor cleanup to MemoryRef #51937

Merged
merged 3 commits into from
Oct 31, 2023
Merged

minor cleanup to MemoryRef #51937

merged 3 commits into from
Oct 31, 2023

Conversation

vtjnash
Copy link
Sponsor Member

@vtjnash vtjnash commented Oct 30, 2023

No description provided.

@oscardssmith
Copy link
Member

Can you post a Base64 benchmark with this change?

Previously `copyto!` on a Memory was always calling unalias, even though
`unsafe_copyto!` did not require that.
@vtjnash
Copy link
Sponsor Member Author

vtjnash commented Oct 30, 2023

Can you post a Base64 benchmark with this change?

The code is in the slow path, so not meaningfully, no. Literally, the code is behind a dynamic dispatch to a function named _slowpath. But looking into it did detect another minor issue, where unalias was being called that shouldn't have been. I think that is fixed now here too

@vtjnash vtjnash merged commit f631597 into master Oct 31, 2023
5 of 7 checks passed
@vtjnash vtjnash deleted the jn/memoryrefcleanup branch October 31, 2023 17:10
Drvi added a commit to RelationalAI/julia that referenced this pull request Nov 1, 2023
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