Latest CLR stories

CLR 4.5: .Net Framework Kernel Improvements(eknowledger.wordpress.com)

submitted by eknowledgereknowledger(156) 24 days, 6 hours ago

In this post I’ll go through some of the enhancements and improvements done by the CLR team as part of the performance improvements in .Net 4.5. In most cases developers will not have to do anything different to take advantage of the new stuff, it will just works whenever the new framework libraries are used. Topics covered: - Improved Large Object heap Allocator - Background mode for Server GC - Auto NGEN read more...

2 comments |category: |Views: 361

tags: another

Max Number of Threads Per Windows Process(eknowledger.wordpress.com)

submitted by eknowledgereknowledger(156) 27 days, 4 hours ago

Developers usually thinks that Windows has a default value for the max number of threads a process can hold. while in fact the limitation is due to the amount of address space each thread can have. When you create new thread, it has some memory in the kernel mode, some memory in the user mode, plus its stack, the limiting factor is usually the stack size. The secret behind that is the default stack size is 1MB and the user-mode address space assigned to the windows process under 32 bit Windows OS is about 2 GB. that allow around 2000 thread per process (2000 * 1MB = 2GB). read more...

1 comment |category: |Views: 133

tags: another

CLR 4.5: Multicore Just-in-Time (JIT)(eknowledger.wordpress.com)

submitted by eknowledgereknowledger(156) 1 month, 2 days ago

.Net 4.5 introduce the concept of Parallel JIT Compilation, where a background thread runs on a separate processor core taking care of the JIT Compilation while the main execution thread running on a different core. In ideal scenario the JIT Compilation thread gets ahead of the main thread execution thread so whenever a method is required it is already Compiled. The question now which methods are required for the startup? in order for the background thread to compile to be ready for a faster startup. That leads us to the new ProfileOptimization type. read more...

1 comment |category: |Views: 192

tags: another

TPL Dataflow–An [Extremely Short] Introduction(blog.virtual-olympus.com)

submitted by thejetthejet(156) 1 month, 9 days ago

As the introductory article in a series on Task Parallel Library Dataflow [TPL Dataflow or TDF], a new feature introduced in .NET 4.5. This article provides a quick introduction to the intent of the series and provides a brief overview of TDF. read more...

add a comment |category: |Views: 63

tags: another

10 Questions, 10 Answers on Roslyn -- Visual Studio Magazine(visualstudiomagazine.com)

submitted by pwhe23pwhe23(972) 1 month, 27 days ago

10 questions and answers to help understand the Roslyn complier-as-a-service project for Visual Basic and C# developers. read more...

add a comment |category: |Views: 198

tags: another

Anonymous functions and code blocks in PowerShell(defndo.com)

submitted by bleakgadflybleakgadfly(10) 3 months, 6 days ago

A showcase of some options you have with scoping in PowerShell with code blocks and also a way to use lambda expressions in PowerShell. read more...

add a comment |category: |Views: 66

tags: another

.Net Memory Management Explained(coolthingoftheday.blogspot.com)

submitted by dpetersondpeterson(4397) 5 months, 7 days ago

Redgate software brings us a storyboard poster which explains .Net memory management in a simple and fun way! read more...

add a comment |category: |Views: 310

tags: another

New preview build of dotPeek available(blogs.jetbrains.com)

submitted by dpetersondpeterson(4397) 5 months, 13 days ago

A new preview build of the upcoming free .Net decompiler from JetBrains, dotPeek, is available now. This latest build comes with all sorts of neat new features, and makes it usable as a part of your everyday toolbox. read more...

add a comment |category: |Views: 99

tags: another

CLR Inside Out: Investigating .NET Memory Issues(msdn.microsoft.com)

submitted by setconndevpsetconndevp(233) 5 months, 18 days ago

Uncovering and correcting memory issues in managed applications can be difficult. Memory issues manifest themselves in different ways. For example, you may observe your application's memory usage growing unboundedly, eventually resulting in an Out Of Memory (OOM) exception. (Your application may even throw out-of-memory exceptions when there is plenty of physical memory available. read more...

add a comment |category: |Views: 15

tags: another

Introduction to the Roslyn Scripting API(blogs.msdn.com)

submitted by dpetersondpeterson(4397) 5 months, 21 days ago

In this post, Brian Rasmussen takes a look at how the Roslyn Scripting API can enable applications to evaluate code at runtime. While this has been possible since the dawn of .NET through the use of Reflection, Lightweight Code Generation, CodeDom, etc., it has never been particularly easy. All of these mechanisms are either hard to use, require MSIL knowledge, or just have inherent limitations. read more...

add a comment |category: |Views: 38

tags: another

PLINQ Queries That Run in Parallel in .NET 4.5 - Parallel Programming (blogs.msdn.com)

submitted by NoldorinNoldorin(829) 6 months, 15 days ago

Igor Ostrovsky demonstrates the improvements that have been made to Parallel Extensions in the .NET Framework 4.5, and shows how you can use PLINQ queries to good effect. read more...

add a comment |category: |Views: 14

tags: another

Secure Strings - CodeProject(www.codeproject.com)

submitted by NoldorinNoldorin(829) 6 months, 17 days ago

Abhishek Goenka gives a short introduction to the .NET Framework's SecureString class which stores strings in memory in an encrypted form so that the data contained in the strings in memory cannot easily be ready from outside the application. read more...

1 comment |category: |Views: 21

tags: another

5 Tips and Techniques for Avoiding Automatic Garbage Collections(www.simple-talk.com)

submitted by dpetersondpeterson(4397) 6 months, 24 days ago

We've seen a few articles lately on ensuring that your memory is properly cleaned up during garbage collection, but today Michael McLaughlin comes in with tips to avoid automatic collection of your objects. Generally speaking, this is for performance reasons. Garbage collection in .Net 4 and earlier happens automatically and blocks program execution, which can be disastrous for certain types of applications (games, real-time analysis, etc). read more...

2 comments |category: |Views: 231

tags: another

Is That a WeakReference In Your Gen 2 or Are You Just Glad to See Me?(www.wintellect.com)

submitted by dpetersondpeterson(4397) 6 months, 26 days ago

John Robbins walks us through debugging an application which is not clearing its memory during garbage collection due to WeakReferences. He shows us how to use the tools available to us to trace the memory problem all the way back to the source. read more...

2 comments |category: |Views: 81

tags: another

In Managed Code We Trust: Our Recent Battles With the .Net GC(samsaffron.com)

submitted by dpetersondpeterson(4397) 6 months, 29 days ago

Following up an earlier article this week, Sam Saffron of Stackoverflow expands on how they mitigated performance problems caused by the .Net generational garbage collector. read more...

2 comments |category: |Views: 355

tags: another

Visual Studio 11 .NET Advances(blogs.msdn.com)

submitted by NoldorinNoldorin(829) 7 months ago

S. Somasegar discusses several new features and improved functionality available in the .NET 4.5 Developer Preview. Performance among other things has seen a significant boost in .NET 4.5. read more...

3 comments |category: |Views: 100

tags: another