vector<MyPoint>preferable because MyPointmost likely:
- less
vector<double>(you can check this with sizeof) and / or - to make fewer distributions. The vector object itself is small, but usually indicates heap data. Small vectors can be optimized to avoid additional isolation by embedding data in a vector object, but do not count on it, therefore
- , .
, 32- gcc, std::vector<double> 12, MyPoint 16, . 64- MyPoint , std::vector, , .
, , . , , , -2, .