.net Compiler Optimizations
Posted
by Dested
on Stack Overflow
See other posts from Stack Overflow
or by Dested
Published on 2010-03-09T11:19:02Z
Indexed on
2010/03/09
11:21 UTC
Read the original article
Hit count: 217
I am writing an application that I need to run at incredibly low speeds. The application creates and destroys memory in creative ways throughout its run, and it works just fine. I am wondering what compiler optimizations occur so I can try to build to that. One trick off hand is that the CLR handles arrays much faster than lists, so if you need to handle a ton of elements in a List, you may be better off calling ToArray() and handling it rather than calling ElementAt() again and again. I am wondering if there is any sort of comprehensive list for this kind of thing, or maybe the SO community can create one :-)
© Stack Overflow or respective owner