Comment

Comment by Out_of_Characte

Because arrays simply do not deal with fragmentation. Yes, you could probaly get decent performance on a modern system that has memory overcommit strategy where you could allocate sparse adress ranges where you would probaly never run out of pointers unless you actually write to your variable array.

But its just kind of mediocre and you're better off actually dealing with the stack if you can actually deal with certain fixed sizes.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton