Joseph Rushton Wakeling:

Question: is there a comparable phenomenon for memory that is manually allocated using malloc?

Manually allocated memory can over-allocate, but not geometrically as arrays do.

Take a look at the difference between core.memory.extend and core.memory.realloc.

Bye,
bearophile

Reply via email to