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
proposal: the make function needs to be optimized for large slices #23906
Comments
/cc @josharian |
Isn't that due to this PR ? 2b41554 It states that:
|
This should be unrelated. The issue is also for Go 1.9. |
Duplicate of #21266? |
I think we can break this into multiple performance issues instead of a proposal:
|
@josharian yes, it is a duplicate of #21266 |
Closing as duplicate of #21266. I'll drop a link to this bug from that one. Or you can comment there. Optimizations don't need to be proposals, either. |
I'm sorry, I mean this is a duplicated of #23306 |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.10 linux/amd64
Does this issue reproduce with the latest release?
yes
What did you do?
What did you expect to see?
The append call should spend more time than the pure make call and spend almost same time as the make+copy calls.
However, these are only true if N is small (<= 1000).
What did you see instead?
When
N == 10
When
N == 1000
When
N == 10000
The text was updated successfully, but these errors were encountered: