Creates a table with the array portion allocated to the given number of elements, optionally filled with the given value.
If you are inserting into large array-like tables and are certain of a reasonable upper limit to the number of elements,
it’s recommended to use this function to initialize the table.
This ensures the table’s array portion of its memory is sufficiently sized, as resizing it can be expensive.
For small quantities this is typically not noticeable.
Creates a table with the array portion allocated to the given number of elements, optionally filled with the given value.
If you are inserting into large array-like tables and are certain of a reasonable upper limit to the number of elements, it’s recommended to use this function to initialize the table. This ensures the table’s array portion of its memory is sufficiently sized, as resizing it can be expensive. For small quantities this is typically not noticeable.