In the last episode (Aug 19), Dan Nelson said:
In the last episode (Aug 20), Martin Nilsson (DivX Networks) @ Pike (-) developers forum said:
Would it be possible and make sense to have the structures that supports over-allocation (such as arrays) to always use full malloc "quanta"?
I think it would be very difficult to determine exactly what that quanta might be. The only place I can see it helping is when growing an array by appending (so you aren't copying the whole thing every time). Would just extending the array by 50% work as well?
I didn't read array.c enough :) When resize_array has to grow an array, it already allocates 50% more space than necessary, and most of the other array-allocation routines do also.