Re: EWCMM crashes my App



As an example, if you load into a StringGrid a CSV files of 20 MB your app will take more than 1 GB!
According to you this is not memory fragmentation but memory overhead.
Is this correct or am I wrong again please?

That will depend on how the CSV is loaded, if it has temporary structures that may be fragmentation, if it's a clean state automaton with no intermediate structures, it could be overhead. To differentiate between the two objectively, a solution could be to have a look at how much actual memory is used (for content) against how much is allocated (from windows). With RecyclerMM snapshot feature you can have that info, another source could be MemProof's resource counter (it is well possible that the StringGrid actually allocates a lot of useless stuff, in which case it would be StringGrid's overhead and not MM overhead).

If I don't have any clear answer, it's because I haven't been
using a VCL Grid (string or not) since the Delphi 3-4 days :p

Eric
.



Relevant Pages

  • Re: Framework 2.0 array redim unsatisfactory performance
    ... implementation details of Redim, Redim Preserve, and List. ... significantly higher object allocated overhead then List. ... ReDim simply allocates a new ... but I do not even attempt to test its memory ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How come Ada isnt more popular?
    ... In an imperative language like Ada, ... > overhead from features that you don't use). ... bound or manually managed memory allocated outside the GC'ed heap. ... I can imagine to allocate some memory in a special, ...
    (comp.lang.ada)
  • Re: find -exec surprisingly slow
    ... > somewhere in the vicinity of 400K files in it. ... The overhead for starting new ... There is however an upper limit to how much memory will be used ...
    (freebsd-questions)
  • Re: JRuby disabling ObjectSpace: what implications?
    ... it depends on the overhead and on the invocation model. ... sound more like there is one JVM for JRuby programs... ... the way they do (object references are no pointers to memory locations). ... You just traverse the list ...
    (comp.lang.ruby)
  • Re: Another New Hardware Thought
    ... which adds data copy, interrupt, and context switching overhead. ... memory manager would become complex enough to be half an OS in its own ... On a machine with 4mb of RAM, ... Then you have the realtime cost of swapping itself, ...
    (comp.sys.apple2)