Click here to Skip to main content
15,897,273 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Subclassed Listview not sending any notifications... Pin
João Paulo Figueira15-Jun-03 1:19
professionalJoão Paulo Figueira15-Jun-03 1:19 
GeneralRe: Subclassed Listview not sending any notifications... Pin
Tommy2k15-Jun-03 2:23
Tommy2k15-Jun-03 2:23 
GeneralRe: Subclassed Listview not sending any notifications... Pin
João Paulo Figueira15-Jun-03 5:11
professionalJoão Paulo Figueira15-Jun-03 5:11 
QuestionActiveX Excel? Pin
Mardigin12-Jun-03 6:09
Mardigin12-Jun-03 6:09 
AnswerRe: ActiveX Excel? Pin
Michael P Butler15-Jun-03 3:49
Michael P Butler15-Jun-03 3:49 
GeneralRe: ActiveX Excel? Pin
Mardigin15-Jun-03 9:41
Mardigin15-Jun-03 9:41 
GeneralDeleting items from a deque Pin
Steve Thresher11-Jun-03 23:09
Steve Thresher11-Jun-03 23:09 
GeneralRe: Deleting items from a deque Pin
Andrew Walker11-Jun-03 23:55
Andrew Walker11-Jun-03 23:55 
Steve Thresher wrote:
I'm trying to avoid the large delay when deleting the deque object
simple. don't delete the deque.

Prefer storing STL containers on the stack rather than on the heap, after all that's one of the huge benefits of using STL containers. In this case prefer passing it in as a parameter and recycling it. If you've profiled the method this should give some kind of performance boost.

Passing the container also has the benefit of not allocating space for an element every time you push_back. The push_back is what's making the destructor so slow, because the allocator has to destroy all the elements you've just created, as well as the (comparatively small) empty deque.



If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.

Rudyard Kipling

GeneralRe: Deleting items from a deque Pin
Steve Thresher12-Jun-03 0:24
Steve Thresher12-Jun-03 0:24 
GeneralRe: Deleting items from a deque Pin
Neville Franks13-Jun-03 12:44
Neville Franks13-Jun-03 12:44 
GeneralAlignment property on ATL control Pin
john.angel11-Jun-03 6:20
john.angel11-Jun-03 6:20 
GeneralClassView information Pin
qur11-Jun-03 2:59
qur11-Jun-03 2:59 
GeneralATL: Deriving from IFont Pin
BadJerry11-Jun-03 0:47
BadJerry11-Jun-03 0:47 
GeneralHaving problem in hosting Mappoint control from ATL ActiveX control Pin
AishuM10-Jun-03 13:27
AishuM10-Jun-03 13:27 
Generalvector remove problem Pin
aguest10-Jun-03 9:29
aguest10-Jun-03 9:29 
GeneralRe: vector remove problem Pin
Ryan_Roberts10-Jun-03 9:42
Ryan_Roberts10-Jun-03 9:42 
GeneralRe: vector remove problem Pin
ZoogieZork10-Jun-03 10:48
ZoogieZork10-Jun-03 10:48 
GeneralRe: vector remove problem Pin
aguest10-Jun-03 11:22
aguest10-Jun-03 11:22 
GeneralRe: vector remove problem Pin
ZoogieZork10-Jun-03 13:40
ZoogieZork10-Jun-03 13:40 
GeneralBuild Error "Performing registration" Pin
clayne10-Jun-03 8:32
clayne10-Jun-03 8:32 
GeneralRe: Build Error "Performing registration" Pin
geo_m10-Jun-03 19:39
geo_m10-Jun-03 19:39 
GeneralSome advice on using deque please Pin
Steve Thresher10-Jun-03 8:17
Steve Thresher10-Jun-03 8:17 
GeneralRe: Some advice on using deque please Pin
Joaquín M López Muñoz10-Jun-03 8:46
Joaquín M López Muñoz10-Jun-03 8:46 
GeneralHows this for ugly! Pin
Steve Thresher10-Jun-03 9:47
Steve Thresher10-Jun-03 9:47 
GeneralRe: Hows this for ugly! Pin
Michael Dunn10-Jun-03 13:49
sitebuilderMichael Dunn10-Jun-03 13:49 

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.