-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
slices: add Concat #60929
slices: add Concat #60929
Conversation
This PR (HEAD: 91b9862) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/504882 to see it. Tip: You can toggle comments from me using the |
Message from Xu Liu: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/504882. |
Message from Carl Johnson: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/504882. |
This PR (HEAD: f48e5da) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/504882 to see it. Tip: You can toggle comments from me using the |
Message from Carl Johnson: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/504882. |
Message from Cuong Manh Le: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/504882. |
Message from Carl Johnson: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/504882. |
Message from Keith Randall: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/504882. |
Message from Xu Liu: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/504882. |
Message from Carl Johnson: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/504882. |
This PR (HEAD: fd860fc) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/504882 to see it. Tip: You can toggle comments from me using the |
my implementation uses copy instead of append
this should result in no new mem allocs if Im right |
should I send new pull or work on this? |
I don't think your implementation is any different than https://go-review.googlesource.com/c/go/+/504882 |
as there was no work done since ... I submitted my own impl. adjusted and simplified to meet the criteria -> #61817 |
AFAIK, the CL is just on hold because Go 1.21 isn't out quite yet. It should be reviewed and merged soon, then you can do a CL to add new tests or benchmarks. |
ah that's why you did not work on it - sorry @carlmjohnson should I add you as co-author to my patch or do you update yours ?!? |
I don't see a reason to update to match yours without a benchmark that shows that it's faster. Write a benchmark and then open a new CL that stacks on top of mine. |
well this need a patch anyway ... as your pull has this api and proposed is not sure what has to be done when an accepted proposal has to be adjusted ?!? |
PS: I'll write some benchmarks :) |
Message from Ian Lance Taylor: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/504882. |
Read the full discussion. This was the accepted API. The dst slice turned out to be unworkable because of the aliasing problem. |
fd860fc
to
e98968a
Compare
This PR (HEAD: e98968a) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/504882. Important tips:
|
Message from Carl Johnson: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/504882. |
Message from Ian Lance Taylor: Patch Set 4: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/504882. |
Message from Gopher Robot: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/504882. |
Message from Gopher Robot: Patch Set 4: TryBot-Result-1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/504882. |
Message from Carl Johnson: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/504882. |
This PR (HEAD: 96a35e5) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/504882. Important tips:
|
Message from Carl Johnson: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/504882. |
Message from Ian Lance Taylor: Patch Set 5: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/504882. |
Message from Gopher Robot: Patch Set 5: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/504882. |
Message from Gopher Robot: Patch Set 5: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/504882. |
Message from Ian Lance Taylor: Patch Set 5: Auto-Submit+1 Code-Review+2 Run-TryBot+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/504882. |
Fixes #56353 Change-Id: I985e1553e7b02237403b833e96fb5ceec890f5b8 GitHub-Last-Rev: 96a35e5 GitHub-Pull-Request: #60929 Reviewed-on: https://go-review.googlesource.com/c/go/+/504882 Auto-Submit: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Reviewed-by: Michael Knyszek <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
This PR is being closed because golang.org/cl/504882 has been merged. |
@6543 slices.Concat has been added. Feel free to open a performance boost CL. Those don't need to go through the proposal process. You just need to demonstrate that it's faster, and it can be merged. |
Fixes golang#56353 Change-Id: I985e1553e7b02237403b833e96fb5ceec890f5b8 GitHub-Last-Rev: 96a35e5 GitHub-Pull-Request: golang#60929 Reviewed-on: https://go-review.googlesource.com/c/go/+/504882 Auto-Submit: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Reviewed-by: Michael Knyszek <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
Fixes golang#56353 Change-Id: I985e1553e7b02237403b833e96fb5ceec890f5b8 GitHub-Last-Rev: 96a35e5 GitHub-Pull-Request: golang#60929 Reviewed-on: https://go-review.googlesource.com/c/go/+/504882 Auto-Submit: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Reviewed-by: Michael Knyszek <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
Fixes golang#56353 Change-Id: I985e1553e7b02237403b833e96fb5ceec890f5b8 GitHub-Last-Rev: 96a35e5 GitHub-Pull-Request: golang#60929 Reviewed-on: https://go-review.googlesource.com/c/go/+/504882 Auto-Submit: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Reviewed-by: Michael Knyszek <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
Fixes #56353