Hit send too early... Your benchmarks do show that something is strange hen
comparing the make (memclr) and copy (memory copy) cases. Out of my element
here :)

On Jun 27, 2017 7:01 PM, "Kevin Malachowski" <ke...@chowski.com> wrote:

> But memclr+copy is slower than just copy, right?
>
> On Jun 27, 2017 6:53 PM, "T L" <tapir....@gmail.com> wrote:
>
>>
>>
>> On Tuesday, June 27, 2017 at 8:55:48 PM UTC-4, Kevin Malachowski wrote:
>>>
>>> It's best to compare the assembly, but my guess: 'make' has to zero out
>>> the memory, whereas allocation using append does not.
>>
>>
>> allocation using append will copy each element, which should be slower
>> than memclr.
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "golang-nuts" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>> pic/golang-nuts/nDYYHKwvYhQ/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> golang-nuts+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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