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

less push! in collect_with_eltype #188

Merged

Conversation

rafaqz
Copy link
Contributor

@rafaqz rafaqz commented Jan 27, 2023

This PR reduces the use of push! in collect_with_eltype.

Unfortunately it's not as good as it could be, because we don't know the eltype of our iterator. Even when it is constant eltype(iter) is Any. It may be worth writing a custom iterator that keeps eltype.

@rafaqz rafaqz force-pushed the faster_collect_with_eltype branch from 422035a to 5ef5fb3 Compare April 3, 2023 14:30
@SimonDanisch SimonDanisch reopened this Jul 18, 2023
@SimonDanisch SimonDanisch merged commit 09df8ea into JuliaGeometry:master Jul 18, 2023
9 checks passed
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