Skip to content

Instantly share code, notes, and snippets.

Sven Grosen ledbutter

  • United States
Block or report user

Report or block ledbutter

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ledbutter
ledbutter / gist:d51bdb8f1ef81fcc7e6c
Created Aug 13, 2015
Compare String.Join and Aggregate()
View gist:d51bdb8f1ef81fcc7e6c
IEnumerable<string> values = Enumerable.Repeat("Foo", 100);
Stopwatch watch = new Stopwatch();
watch.Start();
Console.WriteLine(String.Join("<br/>", values));
Console.WriteLine("Performance with Join: {0}", watch.Elapsed);
// "Performance with Join: 00:00:00.0001146"
You can’t perform that action at this time.