Traditional Culture Encyclopedia - Traditional virtues - c# inheritance performance issues!
c# inheritance performance issues!
For example, C has 10 methods. It can be said that C has the ability to do 10 things, B has 20, and if A, a subclass inherited from B, has 30.
That means A has the ability to do 30 things, not that A has done 30 events.
These methods will only request resources when you call them, and the impact on performance can be ignored.
Moreover, class inheritance, after being compiled into machine code, adds references to the addresses of those method codes in memory in the program. The increased overhead in memory addressing when calling should be suitable for system performance.
There may be other aspects, experts are welcome to point them out.
- Previous article:How is the formation of dumplings?
- Next article:What about Wuxi Yinchuan Advertising Design Co., Ltd.?
- Related articles
- Lijiang ancient city must hit three attractions
- What are all the years of the Goat zodiac sign
- Structured cabling system main content
- Words describing the way of speaking
- Hengshui Laobaigan, Wuyi Dahongpao, such phrases.
- How to charge the car USB quickly?
- Led lamp quotation
- To tell a story to the kindergarten children, to be able to get some sense, must use the animals in the zoo!
- What are the specialties and names of dishes in Northeast China?
- Mud and water shield mud cake how to do?