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
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
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 be a
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
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 manager
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 you
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.