Hi, I am Nima
  • Home
  • Author

Performance

A collection of 6 posts

Generating IDs in C#, 'safely' and efficiently
C#

Generating IDs in C#, 'safely' and efficiently

Recently I needed to find an efficient algorithm for generating unique IDs in a highly concurrent and low latency component.

  • Nima Ara
    Nima Ara
14 min read
Counting Lines of a Text File in C#, the Smart Way
C#

Counting Lines of a Text File in C#, the Smart Way

Counting the lines of a text file may not seem very exciting but recently I had to deal with a number of large files...

  • Nima Ara
    Nima Ara
9 min read
Practical Parallelization in C# with MapReduce, ProducerConsumer and ActorModel
C#

Practical Parallelization in C# with MapReduce, ProducerConsumer and ActorModel

The barrier of entry into multi-threading in .NET is relatively low as both Parallel Computing (making programs run faster) and Concurrent Programming (making programs more responsive) have been greatly simplified since the introduction of TPL and and its friends...

  • Nima Ara
    Nima Ara
24 min read
Beware of the .NET HttpClient
C#

Beware of the .NET HttpClient

In the old days of .NET (pre 4.5) sending a HTTP request to a server could be accomplished by either using the WebClient or at a much lower level via the HttpWebRequest...

  • Nima Ara
    Nima Ara
6 min read
C#

Beware of the IDictionary<TKey, TValue>

In my quest to reduce latency and CPU consumption of our components, I came across a very interesting and probably not so well known performance gotcha!

  • Nima Ara
    Nima Ara
4 min read
High Performance Logging using log4net
C#

High Performance Logging using log4net

When it comes to logging in .NET all you generally need to do is choose between log4net or NLog and start logging...

  • Nima Ara
    Nima Ara
8 min read
Hi, I am Nima © 2022
Latest Posts