On Sat, Oct 1, 2016 at 12:47 AM, bronze man <bronze1...@gmail.com> wrote:
> When I call `fmt.Println(1,2) `, I expect all the interfaces of the
> arguments should alloc on stack so that the garbage collection part will use
> less cpu time, but currently it is alloc on heap.Because I found that I do
> not need that alloced valuable (interface{})(1) is not used after this
> function call.
>
> Do you guys have any plan on improving those stuff?
>
> Is this kind of problem too hard to be solved in linear time?

There are improvements to the compiler's escape analysis in every release.

Go is free software.  We welcome contributions from anybody.

Ian

-- 
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 golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to