Click here to Skip to main content
15,349,767 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: MFC vs STL performance test Pin
Alexander Fedorov19-Oct-13 5:15
MemberAlexander Fedorov19-Oct-13 5:15 
GeneralRe: MFC vs STL performance test Pin
pasztorpisti19-Oct-13 5:31
Memberpasztorpisti19-Oct-13 5:31 
GeneralRe: MFC vs STL performance test Pin
Richard MacCutchan19-Oct-13 6:21
mveRichard MacCutchan19-Oct-13 6:21 
AnswerRe: MFC vs STL performance test Pin
Aescleal21-Oct-13 23:58
MemberAescleal21-Oct-13 23:58 
GeneralRe: MFC vs STL performance test Pin
Alexander Fedorov22-Oct-13 2:05
MemberAlexander Fedorov22-Oct-13 2:05 
GeneralRe: MFC vs STL performance test Pin
Aescleal22-Oct-13 4:44
MemberAescleal22-Oct-13 4:44 
GeneralRe: MFC vs STL performance test Pin
Alexander Fedorov22-Oct-13 5:32
MemberAlexander Fedorov22-Oct-13 5:32 
Answerstd::map too slow Pin
bkelly1310-Nov-13 16:08
Memberbkelly1310-Nov-13 16:08 
I tried using std::map in an application that handles telemetry data. When it was not working I tried stepping into a simple call to fetch data from the map. After 100+ calls without the data I concluded the problem had been found. When the map was replaced with a simple array, the application ran with a very low CPU load.

The std::map is easy to use and a great way to get the program fundamentals right while trying to ignore the data storage problem. If speed is needed, a general and generic problem that can handle any type of data will be inherently much slower.

My conclusion: the template libraries are really cool and easy to use, but very inefficient.
Thanks for your time
If you work with telemetry, please check this bulletin board: http://www.bkelly.ws/irig_106/

GeneralRe: std::map too slow Pin
Albert Holguin14-Nov-13 10:02
professionalAlbert Holguin14-Nov-13 10:02 
GeneralRe: std::map too slow Pin
Aescleal15-Nov-13 11:07
MemberAescleal15-Nov-13 11:07 
GeneralRe: std::map too slow Pin
Albert Holguin15-Nov-13 11:32
professionalAlbert Holguin15-Nov-13 11:32 
QuestionWhy calling sort() crashes? Pin
Kumar Anitesh15-Oct-13 22:38
MemberKumar Anitesh15-Oct-13 22:38 
AnswerRe: Why calling sort() crashes? Pin
Richard MacCutchan15-Oct-13 23:06
mveRichard MacCutchan15-Oct-13 23:06 
AnswerRe: Why calling sort() crashes? Pin
Theo Buys9-Sep-14 2:46
MemberTheo Buys9-Sep-14 2:46 
Questionstd::string name.copy(...) Pin
bkelly132-Oct-13 12:02
Memberbkelly132-Oct-13 12:02 
AnswerRe: std::string name.copy(...) Pin
Richard MacCutchan2-Oct-13 21:24
mveRichard MacCutchan2-Oct-13 21:24 
GeneralRe: std::string name.copy(...) Pin
bkelly134-Oct-13 7:19
Memberbkelly134-Oct-13 7:19 
GeneralRe: std::string name.copy(...) Pin
Richard MacCutchan4-Oct-13 8:08
mveRichard MacCutchan4-Oct-13 8:08 
QuestionCreate iwebbrowser2 in protected mode Pin
narasingubhanu25-Sep-13 20:31
Membernarasingubhanu25-Sep-13 20:31 
AnswerRe: Create iwebbrowser2 in protected mode Pin
Richard MacCutchan25-Sep-13 21:31
mveRichard MacCutchan25-Sep-13 21:31 
GeneralRe: Create iwebbrowser2 in protected mode Pin
narasingubhanu26-Sep-13 0:23
Membernarasingubhanu26-Sep-13 0:23 
GeneralRe: Create iwebbrowser2 in protected mode Pin
Richard MacCutchan26-Sep-13 0:29
mveRichard MacCutchan26-Sep-13 0:29 
Questiononcreate function Pin
DongDong18-Sep-13 4:55
MemberDongDong18-Sep-13 4:55 
AnswerRe: oncreate function Pin
Richard MacCutchan8-Sep-13 6:54
mveRichard MacCutchan8-Sep-13 6:54 
QuestionGroup Box won't group Pin
bkelly1322-Aug-13 11:52
Memberbkelly1322-Aug-13 11:52 

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.