@glouppe That would overallocating. Could that be a problem in terms of peak memory usage? If not, I'll simplify the code.