The Curious Consultant
Menu Close
  • Home
  • Here’s everything!
    • C#
    • SQL
    • General
    • Code
      • C# Code
      • JavaScript/TypeScript Code
      • SQL Code
    • Tips and Techniques
      • C# Tips and Techniques
      • Nintex Tips and Techniques
  • About Dave
  • My Blogs
  • Contact Me Anytime!

Parallel.For

7

C#: Dictionary Vs ConcurrentDictionary

Posted on February 14, 2018 by David Lozinski
C#

C#: Dictionary Vs ConcurrentDictionary In this article we are going to benchmark a C# Dictionary Vs ConcurrentDictionary while adding/updating key-value pairs. This test came about while I was upgrading multiple code blocks from using C# Dictionary objects to ConcurrentDictionary objects.… Continue Reading →

C# .Net, Add, AddOrUpdate, C#, ConcurrentDictionary, ContainsKey, Dictionary, Parallel.For
1

C#: Read lines from a text file in batches and process in parallel

Posted on November 5, 2016 by David Lozinski
C# Code

C#: Read lines from a text file in batches and process in parallel   I have had numerous requests from readers if I could provide some sample C# code which will read lines from a text file in batches and… Continue Reading →

C# Code, Code .Net, C#, Parallel.For, read, text file
4

C#: For Vs ForEach Vs While

Posted on May 13, 2016 by David Lozinski
C#

C#: For Vs ForEach Vs While In this article we’ll benchmark iterating over commonly used collections and data structures with the following loop constructs in C#: For Vs ForEach Vs While. A List of strings needs to be written to… Continue Reading →

C# .Net, C#, For, ForEach, Parallel.For, Parallel.ForEach, While
6

C#.Net: The Fastest Way to count substring occurrences in a string

Posted on August 16, 2014 by David Lozinski
C#

C#.Net: The Fastest Way to count substring occurrences in a string This will examine many techniques to determine in C# .Net: the Fastest Way to count substring occurrences in a string.   Background: This test stemmed from a project where… Continue Reading →

C# .Net, AsParallel, C#, count, Parallel.For, Regex, string, String.Split, substring
26

The Fastest Way to Read and Process Text Files using C# .Net

Posted on November 1, 2013 by David Lozinski
C#

Using C# .Net: Fastest Way to Read and Process Text Files This will benchmark many techniques to determine in C# .Net: Fastest Way to Read and Process Text Files. Building upon my previous article what’s the fastest way to read… Continue Reading →

C# .Net, BufferedStream, C#, fastest, Parallel.For, read, ReadAllLines, ReadToEnd, StreamReader, StringBuilder, text file
23

C# .Net: Fastest Way to check if a string occurs within a string

Posted on August 17, 2013 by David Lozinski
C#

Using C# .Net: Fastest Way to check if a string occurs within a string. This will examine many techniques to determine in C# .Net: Fastest Way to check if a string occurs within a string.   The Background: How many… Continue Reading →

C# .Net, C#, Parallel.For, Regex.IsMatch, string, String.Contains, String.IndexOf, String.Split

Subscribe to be notified of new posts:

Loading

Most Popular Last 30 Days

  • SQL: Fastest way to insert new records where one… (1,128)
  • C# .Net: Fastest Way to Read Text Files (836)
  • SQL: Fastest way to compare multiple column values (379)
  • Fastest Collection for String Lookups in C# .Net (344)
  • C# .Net: Fastest Way to check if a string occurs… (332)

Categories

Latest Comments:

  • Utkarsh Kapadia on C#: Dictionary Vs ConcurrentDictionary
  • Mike H on C#: Dictionary Vs ConcurrentDictionary
  • Utkarsh Kapadia on C#: Dictionary Vs ConcurrentDictionary
  • danzar on Length Vs Count Vs Initialized Variable in C#
  • 5Arete23 on Fastest Collection for String Lookups in C# .Net

Recent Posts

  • How to show attachments on NWC/NAC Cloud Task Forms
  • Does How You Access Class Properties Make A Difference?
  • Things I do to increase Windows drive performance
  • Massive SQL Date Time Cheat Sheet
  • Division Vs Multiplication Equivalent

Everything Else!

Here's Everything if you're trying to find a post, missed some, or just want to see, well, everything. :-)
© 2023 The Curious Consultant. All rights reserved.
Hiero by aThemes