Answer the question
In order to leave comments, you need to log in
How to optimize a C# program?
How can you learn to write programs effectively?
I now know that it is necessary to use an Array, not a List, where it is possible.
But there is something else like that that you need to think about while writing a program. How to learn to think what is more efficient to use? Maybe some books...
Answer the question
In order to leave comments, you need to log in
Don't think about it at all. From the word at all.
I now know that it is necessary to use an Array, not a List, where it is possible.
private List<NormativeDocument> _normDocs;
private HashSet<Guid> _normDocIds;
They will not write you here a few points that you will apply and everything will be fine with you. So it doesn't work.
Isn't it clear that you need to read books? Yes, there are even books specifically on optimization. Only you will be surprised, but optimization often occurs at the level of the algorithm, and not at the level of "this type of variable is more profitable than that one."
There are many books and solutions. And here you are demonstrating to everyone your inability to think with your head on your own.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question