By "native" do you mean C? Normally when programming in Go, native means in
Go, not some other language, and this threw me.

There is nothing "native", at least in my understanding of the term, about
cgo. On the contrary, it is a mechanism for interacting with a foreign
world. That's why the class of things that cgo inhabits is called a
"foreign function interface" or FFI.

Apologies for the correction, but it pays to be precise, especially when
there are established terms and many interacting pieces.

-rob


On Thu, Jul 14, 2016 at 11:37 AM, Caleb Spare <cesp...@gmail.com> wrote:

> Reduce: yes, remove: not that I'm aware of.
>
> https://github.com/golang/go/issues/9704
> https://github.com/golang/go/issues/16051
>
> Much of the overhead is due to defer -- cgo calls have multiple defers.
>
> https://github.com/golang/go/issues/14939
> https://github.com/golang/go/issues/6980
>
> -Caleb
>
> On Thu, Jul 14, 2016 at 11:21 AM, Nick Evgeniev <nevgen...@gmail.com>
> wrote:
>
>> Hi,
>>
>> Is there any plan to reduce (remove) significant overhead for native
>> calls in GO? With recent advances in minimizing gc pauses go becomes more
>> attractive for low latency things... but hundreds nanoseconds overhead
>> imposed on every C call makes it pointless :(
>>
>>
>> --
>> 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.
>>
>
> --
> 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.
>

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