Click here to Skip to main content
15,921,156 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: object pooling for genric C++ class Pin
Chris Richardson17-Apr-03 8:34
Chris Richardson17-Apr-03 8:34 
Some of our intense code uses object pooling, and in our case it definately improves performance. We have a log and it will show that the object pooling removed the need for thousands upon thousands of calls to new (these are comm message objects, which would get created and deleted quite frequently when comm is heavy). The key is finding the right number of objects to store in your pool, so that you aren't using too much unnecessary memory, and so that your pool doesn't run out all the time. It will probably take some tuning.

If you are wary of it, then just try implementing it (it shouldn't be too bad). If profiling shows significant performance gains, it would be a good idea for you. As for alternative approaches, I don't really know of any off the top of my head.

Chris Richardson

You can stash and you can seize
In dreams begin, responsibilities

U2 - Acrobat[^]


Stop being PC and accounting for everyone and his momma's timeframe. Just enjoy your Beer | [beer] - Rohit Sinha in the content-challenged thread
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 
GeneralRe: Application icon problem Pin
Hans-Georg Ulrich17-Apr-03 4:30
Hans-Georg Ulrich17-Apr-03 4:30 

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.