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

ATL / WTL / STL

 
GeneralRe: ostringstream Pin
Tim Smith30-Oct-02 13:59
Tim Smith30-Oct-02 13:59 
GeneralRe: ostringstream Pin
User 988530-Oct-02 15:41
User 988530-Oct-02 15:41 
GeneralRe: ostringstream Pin
Christian Graus30-Oct-02 14:06
protectorChristian Graus30-Oct-02 14:06 
GeneralRe: ostringstream Pin
Tim Smith30-Oct-02 14:41
Tim Smith30-Oct-02 14:41 
GeneralRe: ostringstream Pin
Christian Graus30-Oct-02 14:48
protectorChristian Graus30-Oct-02 14:48 
GeneralRe: ostringstream Pin
Tim Smith30-Oct-02 14:50
Tim Smith30-Oct-02 14:50 
GeneralRe: ostringstream Pin
Tim Smith30-Oct-02 14:51
Tim Smith30-Oct-02 14:51 
GeneralRe: ostringstream Pin
User 988530-Oct-02 16:07
User 988530-Oct-02 16:07 
Christian Graus wrote:
use str("") to clear it,

reduced from 5 ms to 4 ms. Anyway, cannot compete with a char buffer. As Tim and you pointed out, my obsession with using STL in all situations caused this problem. I should have realized (as I have now) earlier that a high efficiency loop requires optimization and not generic classes.

In fact, initially I was having another thread of discussion with Tim about hash_map (because i did not suspect ostringstream, until I profiled it). Actually hash_map works great and the hash function which I copied from the CMapStringToString in MFC gives me virtually 0 collissions for my data set.

Anyway, I learned that I should not assume anything about a problem.

Thanks a lot for the insight you guys give. I have definitely become a much better programmer and designer with the interactions that I have at CP.

Thomas

modified 29-Aug-18 21:01pm.

GeneralUsing CTreeViewCtrl Pin
Jose Cruz30-Oct-02 3:08
Jose Cruz30-Oct-02 3:08 
GeneralRe: Using CTreeViewCtrl Pin
User 988530-Oct-02 13:32
User 988530-Oct-02 13:32 
GeneralRe: Using CTreeViewCtrl Pin
Jose Cruz1-Nov-02 4:31
Jose Cruz1-Nov-02 4:31 
Generalusing a activex dll created in vb in an atl/mfc component Pin
yeeeooowww29-Oct-02 1:31
yeeeooowww29-Oct-02 1:31 
GeneralRe: using a activex dll created in vb in an atl/mfc component Pin
ian mariano29-Oct-02 2:25
ian mariano29-Oct-02 2:25 
GeneralLoadRegTypeLib Question Pin
Anonymous28-Oct-02 12:58
Anonymous28-Oct-02 12:58 
GeneralRe: LoadRegTypeLib Question Pin
Anonymous29-Oct-02 0:23
Anonymous29-Oct-02 0:23 
Generalostream we all scream Pin
Todd Smith25-Oct-02 9:08
Todd Smith25-Oct-02 9:08 
GeneralRe: ostream we all scream Pin
Tim Smith25-Oct-02 9:46
Tim Smith25-Oct-02 9:46 
GeneralRe: ostream we all scream Pin
Todd Smith25-Oct-02 11:13
Todd Smith25-Oct-02 11:13 
GeneralDebuggin a Simple STL Algorithm :: STL Pin
valikac24-Oct-02 21:12
valikac24-Oct-02 21:12 
GeneralRe: Debuggin a Simple STL Algorithm :: STL Pin
Tim Smith25-Oct-02 2:22
Tim Smith25-Oct-02 2:22 
GeneralRe: Debuggin a Simple STL Algorithm :: STL Pin
valikac25-Oct-02 5:28
valikac25-Oct-02 5:28 
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 

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.