Can someone tell me if the linked list of structures can increase the size of the equivalent list (given that the list uses a doubling strategy to increase the size of the internal array).
So, a structure is given that says 40 bytes (I know about 16 bytes and the structure, but I'm working with some old code here, and this will not be a simple option, changing the structure for the class). consists in the fact that each time the internal array of the list is changed, the memory must be allocated for the new array (new_array_size * 40). Thus, with a very large array, you end up with an outofmemoryexception, since there is no contiguous space large enough to create this new array. I know that a linked list requires more space for each element (node), since it needs to hold back and forth pointers for the elements in the list, but my question is whether this means that to add an additional element you only need continuous memory slot (40 + the_space_needed_for_the_pointers). In other words, the linked list will not suffer from the need to allocate a huge new section of continuous memory for expansion.
source share