Re: [go-nuts] Re: about the memclr optimization

2017-02-11 Thread 'Axel Wagner' via golang-nuts
That is currently the case for the mainline implementations, AFAIK, but it really shouldn't matter, unless you are hacking on the runtime/compiler. On Sat, Feb 11, 2017 at 3:36 PM, T L wrote: > > > On Saturday, February 11, 2017 at 1:49:58 PM UTC+8, T L wrote: >> >>

[go-nuts] Re: about the memclr optimization

2017-02-11 Thread T L
On Saturday, February 11, 2017 at 1:49:58 PM UTC+8, T L wrote: > > https://github.com/golang/go/issues/5373 > btw, does this optimization imply that the zero value of any type is composed by zero bytes? At least for all current supported ARCHes. > > > I made a test > > package main > >