cmd/compile: optimisation opportunity with nested iterators #66469
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
go version devel go1.23-5e1e3a0025 Thu Mar 21 17:25:54 2024 +0000 linux/amd64
Output of
go env
in your module/workspace:What did you do?
I ran this testscript:
What did you see happen?
What did you expect to see?
I expected the two versions to have roughly similar performance characteristics.
They are doing both doing exactly the same fundamental work, but one
is about 6x faster than the other.
Perhaps it is possible to lose the additional allocations with sufficient compiler smarts.
For the record, this issue was encountered when exploring implementations for #66455.
The text was updated successfully, but these errors were encountered: