Skip to content

Instantly share code, notes, and snippets.

View Tamschi's full-sized avatar
🃏
Increasingly doing a little of everything

Tamme Schichler Tamschi

🃏
Increasingly doing a little of everything
View GitHub Profile
@Tamschi
Tamschi / speedparse-int.cs
Last active March 22, 2017 20:14
Integer Speedparser
public static int Parse(string str)
{
unchecked
{
int n = 0;
int l = str.Length - 1;
for (int i = l, x = 1; i >= 0; i--, x *= 10)
{
switch (str[i])
{