Memory usage optimization method, device and readable storage medium
A technology of memory occupation and optimization method, which is applied in the field of data processing, can solve problems such as memory occupation, and achieve the effect of reducing memory occupation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0042] In the C++ language, an interface is a special class that cannot be instantiated, that is, a class object cannot be created, and can only be inherited by its derived class, so that the interface can be used by creating an object of the derived class. The advantage of using interfaces is that declarations and implementations can be separated, and any combination of interfaces can be combined to form a componentized programming model.
[0043] The inventor found in actual research that since the interface cannot be instantiated, the interface can only be used by instantiating the derived class by inheriting and implementing the interface through its derived class. But if a derived class inherits multiple interfaces, then as the number of inherited interfaces increases, the size of the derived class will continue to increase. The increase in the size of the derived class means that when creating an instance of the derived class , it will consume more memory, but some of th...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


