0

Does caching calculated loop indexes make a difference?

C#

Does caching calculated loop indexes make a difference? Recently I was reviewing code to a real time financial application. Within a major for-loop construct, I came across the following subset of C# code:  

Look how many times [index… Continue Reading

3

C# .Net: Fastest Way to Clear Collections

C#

C# .Net: Fastest Way to clear Collections In this article I’ll investigate different ways to clear out commonly used Collections such as Hashsets, Dictionaries, ConcurrentDictionaries, ArrayLists, and Arrays, benchmarking the results. This will determine in C# .Net: Fastest way to… Continue Reading