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

C / C++ / MFC

 
GeneralSTL optimization Pin
Not Active3-Jan-02 15:03
mentorNot Active3-Jan-02 15:03 
GeneralRe: STL optimization Pin
Christian Graus3-Jan-02 15:10
protectorChristian Graus3-Jan-02 15:10 
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 
I appreciate your comments.

Tim Smith wrote:
There is no way in hell a container class could ever be as optimized as an unbounded, well defined array fill.

I never expected to be able to accomplish this, merely get a little closer in performance. Using a vector instead of list does that. Wrong container on my part.

Tim Smith wrote:
2. std::vector does bounds checking and reallocates the data buffer using a doubling algorithm. Your FooArray routine does no bounds checking and is limited to only 50 elements.

Of course FooArray is only limited to 50 and does no bounds checking. This was only a simple example. Don't take it so seriously.


Tim Smith wrote:
4. Only runing the routine once is not a valid test. In my tests in release mode, executing each routine 10000 times yielded this information:

Who says I ran the test only once? I didn't think it necessary to post the results of each test run, only one to give as an example.
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 
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 

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.