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

cmd/compile: reuse algs for [N]T arrays #17031

Open
mdempsky opened this issue Sep 8, 2016 · 0 comments
Open

cmd/compile: reuse algs for [N]T arrays #17031

mdempsky opened this issue Sep 8, 2016 · 0 comments
Labels
binary-size compiler/runtime Issues related to the Go compiler and/or runtime.
Milestone

Comments

@mdempsky
Copy link
Member

mdempsky commented Sep 8, 2016

For arrays [N]T where T is not a pure memory type, we currently generate separate algorithms for each distinct value of N. Instead, we could emit simple stub algs that load N into a register/argument, and then jump to a common []T implementation.

Unclear if this shows up often enough in practice to be beneficial though.

Related #17029.

@mdempsky mdempsky added this to the Unplanned milestone Sep 8, 2016
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binary-size compiler/runtime Issues related to the Go compiler and/or runtime.
Projects
None yet
Development

No branches or pull requests

3 participants