The memory size of my delphi application

I have a large delphi application and I try to keep the memory size low.

In my program, I use the component (Taco) and the component (TBurrito), which is inherited from taco. Now only about the use of memory for classes, and not about real instances, in which scenario is more memory used?

and. Using only the TBurrito component everywhere

or

B. Using a combination of Taco and TBurrito?

My thought is that since TBurrito inherits from Taco, the Taco class is already stored in memory, and therefore its use will not greatly increase the amount of memory.

* Note. The names of the components are not Taco and Burrito.

+3
source share
2

Burrito , Taco. Taco.InstanceSize Burrito.InstanceSize, , .

Burrito - ; Taco - , , , , Burrito.ParentClass .

, , Burrito Taco Burrito, Taco , , , . , .

+6

VMT. , , VMT, VMT. VMT , , . . VMT ( Delphi). VMT. , VMT "" , . , . , , . , . , , - RTTI, , . , , VMT, . , , , , , VMT.

+4

Source: https://habr.com/ru/post/1778105/


All Articles