DCSIMG
TPL,Performance - Bnaya Eshet

Bnaya Eshet

Disclaimer

Browse by Tags

All Tags » TPL » Performance (RSS)
the concept of async \ await
the concept of async \ await in this post I will survey the new .NET 4.5 / C# 5 concept of async / await. I will focus on how to understand what is really happens behind the new async / await syntax. What's it all about? the new async / await syntax is using the C# syntactic compiler to generate async operation from code that is looking very much like a synchronous code. but before we start we should discus the new C# 5  syntax. the syntax include 2 keywords: async - which is only a marker...
Tpl Dataflow (IDataflowBlock) - Part 5
Tpl Dataflow ( IDataflowBlock ) - Part 5 the previous post discus the concept ITargetBlock and ISourceBlock , which is the TDF consumer/Producer contract. you can find all the post in this series under the TDF tag. this post focus on the IDataflowBlock contract which is the life-time management contract for all data-flow's blocks. the IDataflowBlock define single property and 2 methods: Code Snippet public interface IDataflowBlock { Task Completion { get ; } void Complete(); void Fault( Exception...
Task != Thread
Task != Thread whenever I teaching the Tpl Task subject I continually repeating the mantra which say that " task is a metadata/context of execution and it does not really responsible for the actual execution ". Task is a data structure which hold information about code execution, it's hold the delegate which will be execute, status, state, result, exception synchronization object, ext... but the responsibility of the execution is actually belong to the Task Scheduler . in matter of...
Is it faster?
Is it faster? does the .NET 4.5 really run faster than 4? this post will summaries TPL Performance Improvements in . NET 4.5 . the TPL team has put lot of effort to dramatically improve the overall performance of .NET 4.5. the improvement was achieve both by execution and memory allocation optimization. in result .NET 4.5 parallelism is faster and more GC friendly . allocation optimization does improve the overall execution speedup, because GC collection does have significantly impact on the overall...