Click here to Skip to main content
15,918,808 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Debuggin a Simple STL Algorithm :: STL Pin
Todd Smith25-Oct-02 11:29
Todd Smith25-Oct-02 11:29 
GeneralRe: Debuggin a Simple STL Algorithm :: STL Pin
valikac25-Oct-02 12:24
valikac25-Oct-02 12:24 
GeneralRe: Debuggin a Simple STL Algorithm :: STL Pin
Tim Smith25-Oct-02 13:07
Tim Smith25-Oct-02 13:07 
GeneralRe: Debuggin a Simple STL Algorithm :: STL Pin
valikac25-Oct-02 13:19
valikac25-Oct-02 13:19 
GeneralRe: Debuggin a Simple STL Algorithm :: STL Pin
Tim Smith25-Oct-02 13:30
Tim Smith25-Oct-02 13:30 
GeneralRe: Debuggin a Simple STL Algorithm :: STL Pin
Jörgen Sigvardsson1-Nov-02 0:42
Jörgen Sigvardsson1-Nov-02 0:42 
GeneralRe: Debuggin a Simple STL Algorithm :: STL Pin
Tim Smith25-Oct-02 13:26
Tim Smith25-Oct-02 13:26 
GeneralRe: Correction Pin
Tim Smith26-Oct-02 8:50
Tim Smith26-Oct-02 8:50 
I left some extra code in the base line test. The real numbers are:

Base line, add ten elements and then clear: 38,843 MS
STL Method supplied by Funny and then clear: 40,157 MS
The "EVIL" hand written loop and then clear: 39,281 MS

These numbers seemed to be stable between multiple tests. The relationship was always maintained.

STL way added 1,314ms to the total time.
Hand written loop added 438ms to the total time.

Which means that the STL way is 3 times slower than the hand written loop. Even if you toss in 100 ms here and there for timing error, STL is still much slower.



Tim Smith

I'm going to patent thought. I have yet to see any prior art.
GeneralRe: Correction Pin
valikac28-Oct-02 9:15
valikac28-Oct-02 9:15 
GeneralRe: Correction Pin
Tim Smith29-Oct-02 13:54
Tim Smith29-Oct-02 13:54 
GeneralRe: Correction Pin
valikac29-Oct-02 14:55
valikac29-Oct-02 14:55 
GeneralATL7 Auto-Generated IDL - Argh! Pin
Simon Steele24-Oct-02 6:24
Simon Steele24-Oct-02 6:24 
GeneralRe: ATL7 Auto-Generated IDL - Argh! Pin
Simon Steele24-Oct-02 23:55
Simon Steele24-Oct-02 23:55 
QuestionWTL ? Pin
puzzolino23-Oct-02 21:44
puzzolino23-Oct-02 21:44 
AnswerRe: WTL ? Pin
Steve S24-Oct-02 2:52
Steve S24-Oct-02 2:52 
GeneralRe: WTL ? Pin
puzzolino24-Oct-02 3:01
puzzolino24-Oct-02 3:01 
GeneralRe: WTL ? Pin
Paul M Watt24-Oct-02 5:09
mentorPaul M Watt24-Oct-02 5:09 
GeneralRe: WTL ? Pin
puzzolino24-Oct-02 5:30
puzzolino24-Oct-02 5:30 
Generalhash_map question Pin
User 988523-Oct-02 9:38
User 988523-Oct-02 9:38 
GeneralRe: hash_map question Pin
Tim Smith23-Oct-02 10:31
Tim Smith23-Oct-02 10:31 
GeneralRe: hash_map question Pin
User 988524-Oct-02 8:21
User 988524-Oct-02 8:21 
GeneralRe: hash_map question Pin
Tim Smith24-Oct-02 14:20
Tim Smith24-Oct-02 14:20 
GeneralRe: hash_map question Pin
Tim Smith24-Oct-02 14:29
Tim Smith24-Oct-02 14:29 
GeneralRe: hash_map question Pin
Tim Smith24-Oct-02 14:41
Tim Smith24-Oct-02 14:41 
GeneralRe: hash_map question Pin
User 988525-Oct-02 1:56
User 988525-Oct-02 1:56 

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.