Re[4]: [fpc-pascal] New object created in custom pool

2008-10-28 Thread JoshyFun
Hello Jonas, Tuesday, October 28, 2008, 4:58:04 PM, you wrote: JM> 100 bytes and smaller are most certainly handled using pools by FC's JM> heap manager. This code is partially inherited from a Delphi one, so the test has been performed a few months ago using D7, maybe the fpc behavior is better

Re: Re[2]: [fpc-pascal] New object created in custom pool

2008-10-28 Thread Jonas Maebe
On 28 Oct 2008, at 16:50, JoshyFun wrote: Hello Jonas, Tuesday, October 28, 2008, 4:24:56 PM, you wrote: My application will create thousands of small objects of the same class, this objects are not created or destroyed in a row, so memory fragmentation could becomes a serious problem aft

Re[2]: [fpc-pascal] New object created in custom pool

2008-10-28 Thread JoshyFun
Hello Vincent, Tuesday, October 28, 2008, 11:23:18 AM, you wrote: VS> You can override class function TObject.NewInstance : tobject; VS> For allocating the memory, you could use a special memory manager from pooledmm: VS> http://lazarus-ccr.sourceforge.net/docs/fcl/pooledmm/index-4.html Thank y

Re[2]: [fpc-pascal] New object created in custom pool

2008-10-28 Thread JoshyFun
Hello Jonas, Tuesday, October 28, 2008, 4:24:56 PM, you wrote: >>> My application will create thousands of small objects of the same >>> class, this objects are not created or destroyed in a row, so memory >>> fragmentation could becomes a serious problem after some time. >> Since the fpc heap ma

Re: [fpc-pascal] New object created in custom pool

2008-10-28 Thread Jonas Maebe
On 28 Oct 2008, at 16:05, Florian Klaempfl wrote: JoshyFun schrieb: Hello FPC-Pascal, My application will create thousands of small objects of the same class, this objects are not created or destroyed in a row, so memory fragmentation could becomes a serious problem after some time. Since t

Re: [fpc-pascal] New object created in custom pool

2008-10-28 Thread Florian Klaempfl
JoshyFun schrieb: > Hello FPC-Pascal, > > My application will create thousands of small objects of the same > class, this objects are not created or destroyed in a row, so memory > fragmentation could becomes a serious problem after some time. Since the fpc heap manager itself pools, this should

Re: [fpc-pascal] New object created in custom pool

2008-10-28 Thread Vincent Snijders
JoshyFun schreef: Hello FPC-Pascal, My application will create thousands of small objects of the same class, this objects are not created or destroyed in a row, so memory fragmentation could becomes a serious problem after some time. My question is: Is there any way to override the object creat

[fpc-pascal] New object created in custom pool

2008-10-28 Thread JoshyFun
Hello FPC-Pascal, My application will create thousands of small objects of the same class, this objects are not created or destroyed in a row, so memory fragmentation could becomes a serious problem after some time. My question is: Is there any way to override the object creation to use a specifi