TStringList of objects taking up tons of memory in Delphi XE

后端 未结 10 1533
遇见更好的自我
遇见更好的自我 2021-01-05 14:50

I\'m working on a simulation program.

One of the first things the program does is read in a huge file (28 mb, about 79\'000 lines,), parse each line (about 150 field

10条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-05 15:27

    Are you sure you don't suffer from a case of memory fragementation?

    Be sure to use the latest FastMM (currently 4.97), then take a look at the UsageTrackerDemo demo that contains a memory map form showing the actual usage of the Delphi memory.

    Finally take a look at VMMap that shows you how your process memory is used.

提交回复
热议问题