What 开发者_运维百科are the .net library calls and system calls that cause the most garbage? I read somewhere DayLightTime causes a lot of garbage and result in garbage collector activity.
I need to find a list of such calls.
Why?
Strive to make your code as clean (in style, not garbage) as possible. If it is too slow, profile and find the problem. Making a list of methods not to call to try and reduce garbage in the future seems like a losing idea.
If you mean 'which calls allocate the most memory that they then free', then it's completely unanswerable, as the amount of memory they use is very likely to depend on the size of the job you give them.
The .NET framework source is available for download if you want to see how a particular call works. http://referencesource.microsoft.com/netframework.aspx
精彩评论