Emil Moe it is in the same range as a data object. with utilizing arrays to store.
$objectStorage = [];
for ($i = 0; $i < 10000000; $i++) {
$objectStorage[] = new Collection([1, 200, 40]);
}
it has around 100MB more but that's not that bad. And about my mentioned generator approach I tested it, it's even worse memory wise. But this is a mean test because it tests the impact of the amount of structures and not the impact of the amount of data.
We could make it faster since laravel is really slow in comparison and the vld analyzis is huge. But this would most likely will happen with all frameworks. We don't pick them because they are efficient ;D but because there could be worse and we can work more efficient.
Emil Moe
Senior Data Engineer
So just to understand the numbers correct. You say that arrays are more efficient than the other 2?