Currently arrays have been largely pre-populated because this gives us noticable iteration speed ups. What has not been considered by this is the memory overhead of this. A tradeoff will always need to be made somewhere, but it would be good to get proper data to back this to ensure we're making the right one.
ROBLOX is supported on devices with a total of ~1GB ram (including OS overhead), so we want to make sure we're not blowing through this limitation.
Currently arrays have been largely pre-populated because this gives us noticable iteration speed ups. What has not been considered by this is the memory overhead of this. A tradeoff will always need to be made somewhere, but it would be good to get proper data to back this to ensure we're making the right one.
ROBLOX is supported on devices with a total of ~1GB ram (including OS overhead), so we want to make sure we're not blowing through this limitation.