I recently moved to Visual Studio 2010 and upgraded my website to work with .NET Framework 4. (From VS 2008 – Framework 3.5)
What are things I need to know to improve site speed, readability or memory use?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Parallel for loops
The rest of the Parallel class provides some other great things like
Parallel.Invoke(...)andParallel.ForEach(...).Also, if you do anything with Linq, you can use the ParallelEnumerable.AsParallel() Method to convert your Linq queries to run in parallel.
It’s all built on the Task Parallel Library which provides a great set of API’s for working with tasks in an abstracted way that scales for whatever resources your machine has without having to think too much about exactly how many threads you are creating.