Skip to content

Commit

Permalink
Small improvements from NDC Oslo 2017
Browse files Browse the repository at this point in the history
  • Loading branch information
jskeet committed Sep 19, 2017
1 parent 2771c2d commit 40254ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions Abusing CSharp/Code/OddsAndEnds/MongolianVowelSeparator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@ static void ShowField()
}
}



// The Mongolian Vowel Separator is U+180E
// History:
// 1996 - Unicode 2.0.0: Not present
// 1999 - 3.0.0: Cf
// 2003 - 4.0.0: Zs
// 2006 - 5.0.0: Zs
// 2010 - 6.0.0: Zs
// 2014 - 7.0.0: Cf
// 2015 - 8.0.0: Cf
// 2016 - 9.0.0: Cf
Expand Down
10 changes: 5 additions & 5 deletions Abusing CSharp/Code/Performance/LargeStructs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ namespace Performance
{
public struct Int256
{
public long Bits0 { get; }
public long Bits1 { get; }
public long Bits2 { get; }
public long Bits3 { get; }
public long Bits0 { get; set; }
public long Bits1 { get; set; }
public long Bits2 { get; set; }
public long Bits3 { get; set; }

public Int256(long bits0, long bits1, long bits2, long bits3)
{
Expand Down Expand Up @@ -42,7 +42,7 @@ public void RunTest()
var sample = TotalValue;
Stopwatch sw = Stopwatch.StartNew();
long total = 0;
for (int i = 0; i < 1000000000; i++)
for (int i = 0; i < 1_000_000_000; i++)
{
total += TotalValue;
}
Expand Down

0 comments on commit 40254ef

Please sign in to comment.