Good day, dear HashKodovtsy. In the program that I need to write, I need to create more than a million copies of one class in the minimum amount of time. Naturally, no amount of operative is enough for this. This begs the question: how to manage the garbage collector? I need to call him in ODA. parts of the code. I will be glad to any links (not to search engines, but to articles checked by you) and your answers.
ZY.: The code must be managed, only C #
ZY.2: A program with a similar count. instances, by definition, is not optimal. The fact is that these are the conditions of the job. That is why I ask you not to consider alternative solutions.
ZY.3: Any recommendations and advice on how to avoid stack overflow are welcome.
З.Ы.4: Any links regarding work with large numbers are welcome.