Skip to content

[WIP] better performance in collect_similar#200

Draft
asinghvi17 wants to merge 5 commits intoJuliaIO:mainfrom
asinghvi17:as/better_collect_similar
Draft

[WIP] better performance in collect_similar#200
asinghvi17 wants to merge 5 commits intoJuliaIO:mainfrom
asinghvi17:as/better_collect_similar

Conversation

@asinghvi17
Copy link
Member

@asinghvi17 asinghvi17 commented Oct 23, 2024

Currently this has a runtime of ~80 microseconds on my test case. Built on top of #198. Feel free to ignore the first two commits.

return similar(A, et, shp)
end
v1, st = y
dest = similar(A, typeof(v1), shp)# TODO: should this be `Base.return_type(itr.f, Tuple{eltype(input)})`?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think Base.promote_op is preferred now

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

Comments