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.
Burrito , Taco. Taco.InstanceSize Burrito.InstanceSize, , .
Burrito
Taco
Taco.InstanceSize
Burrito.InstanceSize
Burrito - ; Taco - , , , , Burrito.ParentClass .
Burrito.ParentClass
, , Burrito Taco Burrito, Taco , , , . , .
VMT. , , VMT, VMT. VMT , , . . VMT ( Delphi). VMT. , VMT "" , . , . , , . , . , , - RTTI, , . , , VMT, . , , , , , VMT.
Source: https://habr.com/ru/post/1778105/More articles:Parsing an array of characters - cInstall the folder as a drive (connection)? - windows-xpto create a batch file for checking .net framework 3.5 sp1 installed or not - .netFluent NHibernate: Map List - fluent-nhibernateASP.NET MVC Razor Syntax Error - c #android, image stretching - androidFirebug 1.6 doesn't show me JS errors - jquery"Order by" SQL problem (out of date / time range) - datetimeКак разместить окно Xul как "Always On Top"? - javascriptWhy a mutex cannot be freed from ISR - mutexAll Articles