Click here to Skip to main content
15,913,152 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionReference or pointer, which is better in my case? Pin
George217-Apr-03 4:44
George217-Apr-03 4:44 
AnswerRe: Reference or pointer, which is better in my case? Pin
João Paulo Figueira17-Apr-03 5:11
professionalJoão Paulo Figueira17-Apr-03 5:11 
GeneralRe: Reference or pointer, which is better in my case? Pin
Daniel Strigl17-Apr-03 9:51
Daniel Strigl17-Apr-03 9:51 
GeneralRe: Reference or pointer, which is better in my case? Pin
George217-Apr-03 15:20
George217-Apr-03 15:20 
GeneralRe: Reference or pointer, which is better in my case? Pin
George217-Apr-03 15:20
George217-Apr-03 15:20 
GeneralRe: Reference or pointer, which is better in my case? Pin
Bartosz Bien18-Apr-03 5:17
Bartosz Bien18-Apr-03 5:17 
GeneralRe: Reference or pointer, which is better in my case? Pin
George218-Apr-03 18:20
George218-Apr-03 18:20 
Generalobject pooling for genric C++ class Pin
User 988517-Apr-03 3:53
User 988517-Apr-03 3:53 
I want to implement an object pooling scheme for one of my C++ classes that are created and deleted frequently (so much as to cause a performance degradation). I am thinking about creating a pool and keep it in a static list, and manage the list instead of actually calling new and delete every time.

Is this recommended for improving performance OR is there a better alternative apporach?




My article on a reference-counted smart pointer that supports polymorphic objects and raw pointers


modified 29-Aug-18 21:01pm.

GeneralRe: object pooling for genric C++ class Pin
Chris Richardson17-Apr-03 8:34
Chris Richardson17-Apr-03 8:34 
GeneralRe: object pooling for genric C++ class Pin
User 988517-Apr-03 8:52
User 988517-Apr-03 8:52 
GeneralRe: object pooling for genric C++ class Pin
Chris Richardson17-Apr-03 9:06
Chris Richardson17-Apr-03 9:06 
Generalctrl-alt-del Pin
Member 22664017-Apr-03 3:48
Member 22664017-Apr-03 3:48 
GeneralRe: ctrl-alt-del Pin
Rage17-Apr-03 4:14
professionalRage17-Apr-03 4:14 
GeneralRe: ctrl-alt-del Pin
John M. Drescher17-Apr-03 6:52
John M. Drescher17-Apr-03 6:52 
GeneralKeyBoard Capture Pin
Member 22664017-Apr-03 3:43
Member 22664017-Apr-03 3:43 
GeneralRe: KeyBoard Capture Pin
User 988517-Apr-03 3:58
User 988517-Apr-03 3:58 
GeneralRe: KeyBoard Capture Pin
Member 22664020-Apr-03 2:39
Member 22664020-Apr-03 2:39 
GeneralApplication icon problem Pin
Hans-Georg Ulrich17-Apr-03 3:10
Hans-Georg Ulrich17-Apr-03 3:10 
GeneralRe: Application icon problem Pin
Rage17-Apr-03 3:29
professionalRage17-Apr-03 3:29 
GeneralRe: Application icon problem Pin
Hans-Georg Ulrich17-Apr-03 3:42
Hans-Georg Ulrich17-Apr-03 3:42 
GeneralRe: Application icon problem Pin
Rage17-Apr-03 4:16
professionalRage17-Apr-03 4:16 
GeneralRe: Application icon problem Pin
Bartosz Bien17-Apr-03 3:53
Bartosz Bien17-Apr-03 3:53 
GeneralRe: Application icon problem Pin
Hans-Georg Ulrich17-Apr-03 4:00
Hans-Georg Ulrich17-Apr-03 4:00 
GeneralRe: Application icon problem Pin
Bartosz Bien17-Apr-03 7:43
Bartosz Bien17-Apr-03 7:43 
GeneralRe: Application icon problem Pin
Joel Lucsy17-Apr-03 4:13
Joel Lucsy17-Apr-03 4:13 

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.