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

more info on sizehint! #47235

Merged
merged 2 commits into from
Oct 26, 2022
Merged

more info on sizehint! #47235

merged 2 commits into from
Oct 26, 2022

Conversation

udohjeremiah
Copy link
Contributor

IMO, the sizehint! info isn't complete in some way, since its not quite evident at the onset how this "can improve performance", so it would be best to provide a few info on how it actually does the "improves performance". The motivation was gotten far back from this conversation on https://groups.google.com/g/julia-users/c/214uuJcCF6o about sizehint!, and as you can see there, the words I added in this PR are @StefanKarpinski's own.

Also from an issue here #5364, it was evident using resize! in some cases might actually be the "best use-case", as was suggested to the user by @JeffBezanson, so I think it would be great to add a see also section for this. I'm not quite verse in this, so it would be great to see people who know a lot on this improve the see also section, as "improves performance" is still a well-known debatable issue with sizehint! (some great PRs and issue-solvers are currently opened on this).

@udohjeremiah udohjeremiah added the docs This change adds or pertains to documentation label Oct 19, 2022
@fredrikekre fredrikekre merged commit 48abb72 into JuliaLang:master Oct 26, 2022
@udohjeremiah udohjeremiah deleted the patch-39 branch October 26, 2022 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This change adds or pertains to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants