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

Why ToSlice need a custom grow strategy instead of the standard library? #109

Open
Sora233 opened this issue Dec 9, 2021 · 1 comment
Open

Comments

@Sora233
Copy link

Sora233 commented Dec 9, 2021

reflect.Append() is more robust I think.

@ahmetb
Copy link
Owner

ahmetb commented Dec 9, 2021

I don't know if it was available at the time or we knew about it. I doubt it was intentionally picked. I highly recommend writing a Benchmark test with Go testing package and seeing if it performs better.

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

No branches or pull requests

2 participants