On Wed, Jan 16, 2019 at 11:55 AM Wojciech S. Czarnecki <o...@fairbe.org>
wrote:


> You can't expect a million interrupts per second and host OS running
> simultaneously.
> (1us gives some 4k instructions inbetween on recent 3GHz cpu core)
>
>
And to add: if you do anything with memory, it is usually considerably less
than that. DRAM access in particular can be shaving many of those 4k
instructions off very easily.

If possible, it is usually better to fill out work for the future when you
are on-CPU, because you don't necessarily know when you come back to the
CPU core. This hides the latency.

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