Click here to Skip to main content
15,918,243 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: object pooling for genric C++ class Pin
User 988517-Apr-03 8:52
User 988517-Apr-03 8:52 
Thank you very much for the reply.

I made one implementation already. My objects are very small and the number of objects that are in memory at any time is not significantly high. To my surprise, my application improved more than 20% in performance. I am planning to post an article this weekend with the code.

Currently, the pool grows to the maximum number of objects of the class that have ever been in memory. I want to put in some code to release some of these objects, if they are not being used. Anyway. it is not important to me at this moment because memory usage is not very huge.

Thomas


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 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 
Generalproblems with button messages Pin
sandrine17-Apr-03 3:09
sandrine17-Apr-03 3:09 

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.