On Thu, Nov 27, 2025 at 2:20 PM Pierre Durand <[email protected]> wrote:
> Does the Go compiler generate jump table ? > If I write a switch case (with fixed string or int value), and return > immediately, does it generate a jump table ? > If so, can you show me the file where it is done. eg. https://github.com/golang/go/blob/cead111a772c2852c870fb140029d89152da4d14/src/cmd/compile/internal/walk/switch.go#L297 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/CAA40n-Uy4dSZsZNgE9coJfY7hua%2Bw1gJvWCbkRMwqkAfgLwpMw%40mail.gmail.com.
