cmd/compile: optimize program running speed #46030
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
This is currently an idea, an idea to optimize the operation of the program. It may not be rigorous. I hope to rewrite the code to achieve optimal performance during the compilation phase. We all know that the most commonly used optimization method is splicing, not
fmt.Printf
orfmt.Sprintf
.But using
fmt.Printf
orfmt.Sprintf
can achieve extremely high readability. So I was wondering whether it is possible to rewritefmt.Sprintf
into splicing during the compilation phase. E.gThe above is a preliminary idea of mine. I think this optimization can greatly improve performance without changing the code. Welcome to discuss
A simple benchmark I did
The text was updated successfully, but these errors were encountered: