The Curious Consultant
Programming is learned by writing programs.
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!

.Net

0

C# .Net: Fastest Way to count the number of times a character occurs in a string

Posted on April 13, 2014 by David Lozinski
C#

The Fastest Way to count the number of times a character occurs in a string using C# .Net: This test stemmed from my other test on the fastest way to count the number of times a string occurs within another… Continue Reading →

C# .Net, AsParallel, C#, count, Linq.Count, Regex.Matches, Regex.Matches.Count, String.Split, Sum
1

C# .Net: Fastest Way to Convert an Int to a String

Posted on March 24, 2014 by David Lozinski
C#

C# .Net: fastest way to convert an int to a string Here I am going to benchmark several techniques to find the fastest way to convert an int to a string.   All C# programmers have to do this at… Continue Reading →

C# .Net, C#, Convert.ToString, String.Format, StringBuilder, ToString()
5

C# .Net: What is the fastest conditional statement?

Posted on February 6, 2014 by David Lozinski
C#

C# .Net: What is the fastest conditional statement? This will benchmark the C# if-else construct, switch statement, and C# ternary operator (?) to determine which is the fastest in C# .Net.   Most applications have at least one type of… Continue Reading →

C# .Net, C#, conditional statement, if/else, switch/case statement, ternary operator (?)
9

C# .Net: Fastest Way to check if a Number is Odd Or Even

Posted on January 16, 2014 by David Lozinski
C#

C# .Net: Fastest Way to check if a Number is Odd Or Even This will benchmark many techniques to determine in C# .Net: Fastest way to check if a number is odd or even. There’s an amazing number of applications… Continue Reading →

C# .Net, &, %, bitwise ampersand, C#, DivRem, Modulus, System.Math.DivRem
10

C# .Net: Use the Modulus Operator or Alternative?

Posted on December 16, 2013 by David Lozinski
C#

C# .Net: Use the Modulus Operator or Alternative? This investigates the performance of the modulus operator % in C# .Net and benchmarks against other techniques to determine if you should in C# .Net: use the Modulus Operator or alternative.  … Continue Reading →

C# .Net, %, C#, Modulus, System.Math.DivRem
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
13

C# .Net: Fastest Way to Convert a String to an Int

Posted on September 28, 2013 by David Lozinski
C#

C# .Net: Fastest Way to Convert a String to an Int This will examine and benchmark many techniques to determine in C# .Net: Fastest way to convert a string to an int.   I ended up working on a project… Continue Reading →

C# .Net, C#, Convert.ToInt32, Int.Parse, Int32.TryParse
21

C# .Net: Fastest Way to Read Text Files

Posted on August 30, 2013 by David Lozinski
C#

C# .Net: Fastest Way to Read Text Files This will examine many techniques to determine in C# .Net: Fastest Way to Read Text Files or the fastest way to read a single text file. I have seen a lot of… Continue Reading →

C# .Net, BufferedReader, BufferedStream, C#, ReadAllLines, ReadLine, ReadToEnd, StreamReader, StringBuilder
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

Post navigation

Newer Articles

Subscribe to be notified of new posts:

Loading

Most Popular Last 30 Days

  • SQL: Fastest way to insert new records where one… (624)
  • C# .Net: Fastest Way to Read Text Files (574)
  • SQL: LIKE vs SUBSTRING vs LEFT/RIGHT vs CHARINDEX (348)
  • C# .Net: Fastest Way to check if a string occurs… (297)
  • C#: Dictionary Vs ConcurrentDictionary (237)

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

  • Math.Max/Min vs inline comparisons
  • How to get values from People Picker control on Nintex Cloud Task Forms
  • 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

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