On Fri, Sep 7, 2018 at 1:41 AM, Sergey Kamardin <gob...@gmail.com> wrote:
>> Note that calculating the length of a slice is a fast operation; it's
>> a single memory load.
>
> So, actually it just loads a slice header's field?

Yes.

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