GinnyWeasley:

but I don’t think it’s the garbage collection mechanism that is responsible for the effects we’ve seen so far


I was thinking about the gc due to the change in the reported memory while using the same code snippet, but again I don’t know what bookkeeping is done additionally etc. You might want to take a look at this issue 1 which discusses the memory overhead, increase etc.