2 ms·
I have addressed similar problems using a typed array of contiguous memory and another array of lengths.
by sitkack 5y ago
I have addressed similar problems using a typed array of contiguous memory and another array of lengths.
- marginalia_nu 5y agoI 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.
- sitkack 5y agoHmmm, 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.