FastStringKeyDictionary Intro

Hi, today I will show you intro, partly implemented code of the fast dictionary with string type key. My work is partial. There are tests for Add, ContainsKey and TryGetValue methods. If you like you can continue this work and add also Remove method and an Enumerator. I left that to give you a direction and the idea but I want to left something Continue ReadingFastStringKeyDictionary Intro

PublisherConsumerCollection<T>

Hi, today I will show you a special concurrent collection created with Publisher->Consumer pattern. Below I will show you a C# 4.0 code with a small benchmark. Enjoy :). Benchmark output: And when you comment out 177 line with waiting in Add method: It is up to you how to change this example, but you can see that using Publisher->Customer pattern is in some Continue ReadingPublisherConsumerCollection<T>