-
Notifications
You must be signed in to change notification settings - Fork 18k
reflect: add Value.Caller to minimise allocations #59499
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
Conversation
This PR (HEAD: aefc220) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/483255 to see it. Tip: You can toggle comments from me using the |
Message from Ian Lance Taylor: Patch Set 1: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
Message from Ian Lance Taylor: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
Message from Gopher Robot: Patch Set 1: TryBot-Result-1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
This PR (HEAD: 39ec268) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/483255 to see it. Tip: You can toggle comments from me using the |
Message from Ian Lance Taylor: Patch Set 2: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
Message from Gopher Robot: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
Message from Gopher Robot: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
Message from Gopher Robot: Patch Set 2: TryBot-Result-1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
This PR (HEAD: cd346e9) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/483255 to see it. Tip: You can toggle comments from me using the |
Message from Ian Lance Taylor: Patch Set 3: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
Message from Gopher Robot: Patch Set 3: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
Message from Gopher Robot: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
Message from Gopher Robot: Patch Set 3: TryBot-Result-1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
This PR (HEAD: 0955bac) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/483255 to see it. Tip: You can toggle comments from me using the |
Message from Ian Lance Taylor: Patch Set 4: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
Message from Gopher Robot: Patch Set 4: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
Message from Gopher Robot: Patch Set 4: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
This PR (HEAD: ad06ed6) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/483255 to see it. Tip: You can toggle comments from me using the |
Message from Ian Lance Taylor: Patch Set 5: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
Message from Gopher Robot: Patch Set 5: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
Message from Gopher Robot: Patch Set 5: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
Message from Ian Lance Taylor: Patch Set 5: (9 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
This PR (HEAD: e768323) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/483255 to see it. Tip: You can toggle comments from me using the |
Message from Nicholas Wiersma: Patch Set 6: (9 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
Message from Ian Lance Taylor: Patch Set 6: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
Message from Gopher Robot: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
Message from Gopher Robot: Patch Set 6: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
Message from Ian Lance Taylor: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
Message from Ian Lance Taylor: Patch Set 6: Auto-Submit+1 Code-Review+2 Run-TryBot+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
Message from Bryan Mills: Patch Set 6: (6 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
Message from Nicholas Wiersma: Patch Set 6: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/483255. |
This adds the Caller struct that makes calling functions allocation free. Value.Call and Value.CallSlice now
internally use Caller, as well as adding Value.Caller to access the Caller directly.
Fixes #49340