Re:A million ways to die from a data race in Go
by gf000 on Tuesday November 25, 2025 @05:21AM
(#46044414)
Refcounting is significantly slower under most circumstances. You are literally putting a bunch of atomic increments/decrements into your code (if you can't prove that the given object is only used from a single thread) which are crazy expensive operations on modern CPUs, evicting caches.
[ Parent
| on HN ]
Re:A million ways to die from a data race in Go
by LtWorf on Tuesday November 25, 2025 @07:11AM
(#46045069)
Under most circumstances function local variables aren't passed to other threads, or passed at all.