I started writing a great C # application for the first time in my life. I wrote a sample module to test the idea of my software. This module contained dozens of C # dictionaries and lists of objects, each of which had several elements and properties.
I was shocked that after initializing the main objects, about 40 MB of RAM is ultimately used.
I tested and found out that after the initialization of the object more than 30 MB is allocated, but I got the impression that, taking into account the size of my objects, it was necessary to consume no more than several hundred kilobytes.
Am I doing something wrong or is .NET naturally more memory intensive compared to native code applications?
source
share