News for hackers. Stuff that matters.
Re:Go does not need a Java-style GC by sitkack on Tuesday November 23, 2021 @10:38PM (#29326712)
I have addressed similar problems using a typed array of contiguous memory and another array of lengths.
Re:Go does not need a Java-style GC by marginalia_nu on Wednesday November 24, 2021 @03:30PM (#29334759)
I did try exactly that, but the GC overhead was still prohibitively high for my use case, made because big arrays in practice are composed from shorter non-contiguous arrays to make garbage collection even remotely possible.
Re:Go does not need a Java-style GC by sitkack on Thursday November 25, 2021 @06:58AM (#29340585)
Hmmm, if the typed array only contains primitives, the GC isn't looking inside the array. If the thing pointed to, can never contain a pointer, it won't need to be scanned.