Click here to Skip to main content
15,911,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: STL optimization Pin
Not Active4-Jan-02 1:18
mentorNot Active4-Jan-02 1:18 
GeneralRe: STL optimization Pin
Thomas Freudenberg4-Jan-02 1:45
Thomas Freudenberg4-Jan-02 1:45 
GeneralRe: STL optimization Pin
Tim Smith4-Jan-02 2:24
Tim Smith4-Jan-02 2:24 
GeneralRe: STL optimization Pin
CodeGuy4-Jan-02 2:38
CodeGuy4-Jan-02 2:38 
GeneralRe: STL optimization Pin
Tim Smith4-Jan-02 7:20
Tim Smith4-Jan-02 7:20 
GeneralRe: STL optimization Pin
Not Active4-Jan-02 9:46
mentorNot Active4-Jan-02 9:46 
GeneralRe: STL optimization Pin
Tim Smith4-Jan-02 10:13
Tim Smith4-Jan-02 10:13 
GeneralRe: STL optimization Pin
CodeGuy4-Jan-02 2:32
CodeGuy4-Jan-02 2:32 
Why are you comparing apples and oranges? You need to compare vectors with arrays.

A fair comparison would be the following:

std::vector<int> FooVector()
{
std::vector<int> v(50);
for (int i=0; i<50; i++)
v[i] = i;

return v;
}

Also, on VC++, Herb Sutter has proved that deque is actually faster than vector, so you might consider trying comparisons with that as well.

CodeGuy

The WTL newsgroup: over 1100 members! Be a part of it. http://groups.yahoo.com/group/wtl
GeneralRe: STL optimization Pin
Tim Smith4-Jan-02 7:25
Tim Smith4-Jan-02 7:25 
GeneralRe: STL optimization Pin
CodeGuy4-Jan-02 8:12
CodeGuy4-Jan-02 8:12 
GeneralRe: STL optimization Pin
Tim Smith4-Jan-02 8:53
Tim Smith4-Jan-02 8:53 
GeneralRe: STL optimization Pin
CodeGuy4-Jan-02 9:02
CodeGuy4-Jan-02 9:02 
GeneralRe: STL optimization Pin
Not Active4-Jan-02 9:47
mentorNot Active4-Jan-02 9:47 
GeneralPicture and Win 95 Pin
Matt Newman3-Jan-02 13:43
Matt Newman3-Jan-02 13:43 
GeneralRe: Picture and Win 95 Pin
Philip Patrick3-Jan-02 13:47
professionalPhilip Patrick3-Jan-02 13:47 
GeneralRe: Picture and Win 95 Pin
Matt Newman3-Jan-02 14:27
Matt Newman3-Jan-02 14:27 
GeneralAPI guide Pin
KinHei3-Jan-02 12:27
KinHei3-Jan-02 12:27 
GeneralRe: API guide Pin
Nish Nishant3-Jan-02 16:36
sitebuilderNish Nishant3-Jan-02 16:36 
GeneralRe: API guide Pin
Michael P Butler4-Jan-02 1:18
Michael P Butler4-Jan-02 1:18 
GeneralEdit Controls Pin
John L. DeVito3-Jan-02 11:10
professionalJohn L. DeVito3-Jan-02 11:10 
GeneralRe: Edit Controls Pin
Christian Graus3-Jan-02 11:14
protectorChristian Graus3-Jan-02 11:14 
QuestionWhen I put CD in drive, how do make it automatically execute setup.exe? Pin
DanYELL3-Jan-02 9:37
DanYELL3-Jan-02 9:37 
AnswerRe: When I put CD in drive, how do make it automatically execute setup.exe? Pin
Greven3-Jan-02 9:42
Greven3-Jan-02 9:42 
GeneralRe: When I put CD in drive, how do make it automatically execute setup.exe? Pin
Nish Nishant3-Jan-02 16:38
sitebuilderNish Nishant3-Jan-02 16:38 
AnswerRe: When I put CD in drive, how do make it automatically execute setup.exe? Pin
Carlos Antollini3-Jan-02 9:55
Carlos Antollini3-Jan-02 9:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.