Skip to content

Instantly share code, notes, and snippets.

View rivantsov's full-sized avatar

Roman Ivantsov rivantsov

  • Seattle, WA
View GitHub Profile
@rivantsov
rivantsov / chardict2.cs
Last active December 14, 2015 03:39 — forked from yallie/chardict2.cs
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
/* Results
Dictionary. Time elapsed: 00:00:12.0486110, single iteration: 0.00012048611 ms.
CharDictionary. Time elapsed: 00:00:00.5085145, single iteration: 5.085145E-06 ms
CompactCharDictionary. Time elapsed: 00:00:02.6166454, single iteration: 2.6166454E-05 ms