Subj : Re: largest memory block To : borland.public.cpp.borlandcpp From : maeder Date : Tue Mar 22 2005 07:55 pm "Mohsen" writes: > using containers such as STL's > vector or BIDS's(old) TArray have the drawback that when they > are reallocating they double the memory and in that sense they > are inefficient for tasks that require speed and memory. Have you determined that this is a problem in an application of yours, or are you afraid it may become one in the future? > The only solution is to set the amount of memory to predefined > value which in fact reduces the number of reallocations. That > value is not clear for me. I have also thought of a specific > value and then reduce it if that amount is not available, but > this also limits the usability and reduces the efficiency when > for example running the program on a computer with 1GB RAM > relative to another computer with 128MB RAM. I don't understand this. What is less efficient than what here? .