Run this program, and compile the result: ``` #!/usr/bin/python3 print("package p") print("var m = map[string][]string {") for i in range(20000): print("\"x%d\": {\"y%d\",},"%(i,i)) print("}") ``` Compiles in about 18sec on my machine before [CL 751841](https://go.dev/cl/751841), but 73sec after [CL 751841](https://go.dev/cl/751841). `-d=ssa/all/time` shows regalloc time is the culprit. @DanielMorsing
Activity
gabyhelp commentedon Sep 22, 2026
Related Issues
Related Code Changes
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
gopherbot commentedon Sep 23, 2026
Change https://go.dev/cl/837445 mentions this issue:
cmd/compile: share dominance frontiers during regallocgopherbot commentedon Sep 23, 2026
Change https://go.dev/cl/837465 mentions this issue:
cmd/compile: special case simple dominance frontier calculationgopherbot commentedon Sep 24, 2026
Change https://go.dev/cl/838005 mentions this issue:
cmd/compile: use sparse maps for frequently zeroed slicescmd/compile: special case simple dominance frontier calculation