Stories recently tagged with 'CLR'

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

submitted by eknowledgereknowledger(156) 24 days, 14 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, 12 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: 134

tags: another

CLR 4.5: Managed Profile Guided Optimization (MPGO)(eknowledger.wordpress.com)

submitted by eknowledgereknowledger(156) 1 month, 1 day ago

The Managed Profile Guided Optimization (MPGO) technology can improve the startup and working set (memory usage) of managed applications by optimizing the layout of precompiled native images.By organize the layout of your native image so most frequently called data are located together in a minimal number of disk pages in order to optimize each request for a disk page of image data to include a higher density of useful image data for the running program which in return will reduce the number of page requests from disk. if you think more about it, mostly it will be useful to machines with mechanical disks but if you have already moved to the Solid State Drive Nirvana the expected performance improvement will probably be unnoticeable. read more...

add a comment |category: |Views: 3

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, 28 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

.NET 4.0 Runtime Superceded by .NET 4.5!(blogs.kungfucoder.com)

submitted by JohnBergmanJohnBergman(20) 2 months, 27 days ago

...Much to my surprise, there was not a .NET 4.5 Framework Directory! After some digging, I discovered that ".NET 4.5 Supercedes .NET 4.0"! This means that the new Runtime replaces the 4.0 runtime. read more...

add a comment |category: |Views: 7

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, 8 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

Memory in .NET - (Vagueness Of .NET Memory Management)(www.dotnetfreaks.net)

submitted by ajanderajander(9) 5 months, 13 days ago

"Variables" are simply storage locations for data becuase it is really hard to pragramme against the memory address. It means, a variable is just an association between a name and memory slot. You can place data into them and retrieve their contents as part of a C# expression. The size of that slot, and the interpretation of the value is controlled through "Types" - and this is where the difference between value types and reference types comes in..... read more...

add a comment |category: |Views: 14

tags: another

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

submitted by dpetersondpeterson(4397) 5 months, 14 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, 22 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, 25 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