On Tuesday, 14 December 2021 at 03:28:26 UTC kurnia...@gmail.com wrote:

> the problem with it, when you have a large live heap but with efficient 
> code (most of the hot code is zero alloc), the runtime will be wasting CPU 
> time every 2 minutes just to find out that there is no garbage to collect
>

Let's say it wastes, say, 10 milliseconds every 2 minutes - and it doesn't 
even stop the program for that time but runs GC in a separate thread. Is 
that a big deal, in order to give reasonable behaviour across a wide range 
of programs?

If you need such fine low-level control, then maybe a different language 
like Rust (or even C) might be better for your application.

>

-- 
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/84107048-8822-4ecd-846f-70dc4ea64a02n%40googlegroups.com.

Reply via email to