https://blog.cloudflare.com/its-go-time-on-linux/

A bit old, but still relevant.

Also https://github.com/dterei/gotsc may be useful depending on your 
requirements.


On Tuesday, 27 April 2021 at 16:54:38 UTC+1 manlio....@gmail.com wrote:

> Il giorno martedì 27 aprile 2021 alle 17:51:46 UTC+2 Ian Lance Taylor ha 
> scritto:
>
>> On Tue, Apr 27, 2021 at 7:43 AM Manlio Perillo <manlio....@gmail.com> 
>> wrote: 
>> > 
>> > Il giorno lunedì 26 aprile 2021 alle 10:24:09 UTC+2 Pure White ha 
>> scritto: 
>> >> 
>> >> So I really want to know what is the right way to do vdso call outside 
>> runtime? 
>> >> 
>> > What about using a different function instead of time.Now, and using 
>> RawSyscall? 
>>
>> That wouldn't be a VDSO call. VDSO calls are in general faster than 
>> system calls. There is more background at 
>> https://man7.org/linux/man-pages/man7/vdso.7.html.
>
> Ian
>
>
> Yes, that wouldn't a VDSO call.  But since a VDSO call will require cgo , 
> maybe RawSyscall will be more efficient? 
>
>
> Manlio
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/93b1edd8-cc53-4fef-b713-d563d69ea876n%40googlegroups.com.

Reply via email to