This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Text; | |
| namespace ProbabilisticDataStructures.DataStructures | |
| { | |
| public class BitSet | |
| { | |
| private ulong[] bitset; | |
| public int Size { get; private set; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using System.Windows; | |
| using System.Windows.Media; | |
| using System.Windows.Media.Animation; | |
| namespace WPFAnimations |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class BitSet | |
| { | |
| private ulong[] bitset; | |
| public int Size { get; private set; } | |
| public BitSet(int size) | |
| { | |
| bitset = new ulong[(size / 64) + 1]; | |
| Size = size; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/PowerUp.Core/Decompilation/JITExtensions.cs b/src/PowerUp.Core/Decompilation/JITExtensions.cs | |
| index 88b3397..0f18362 100644 | |
| --- a/src/PowerUp.Core/Decompilation/JITExtensions.cs | |
| +++ b/src/PowerUp.Core/Decompilation/JITExtensions.cs | |
| @@ -5,23 +5,18 @@ using System.Runtime.CompilerServices; | |
| using System.Text; | |
| using PowerUp.Core.Console; | |
| using System.Linq; | |
| +using System.Runtime.InteropServices; | |
| using PowerUp.Core.Decompilation.Attributes; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public int? A(int? x, int? y) { | |
| int? sum = 0; | |
| for(int i = 0; i < 1000; i++) | |
| sum += x + y; | |
| return sum.Value; | |
| } | |
| public int? B(int? x, int? y) { | |
| int? sum = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using BenchmarkDotNet.Attributes; | |
| using BenchmarkDotNet.Configs; | |
| using BenchmarkDotNet.Running; | |
| using System; | |
| using System.Diagnostics; | |
| using System.Runtime.CompilerServices; | |
| using System.Threading.Tasks; | |
| using System.Linq; | |
| using System.Collections.Generic; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Bench92 | |
| { | |
| public int[] _x = null; | |
| [GlobalSetup] | |
| public void Setup() | |
| { | |
| _x = new int[10000]; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Bench92 | |
| { | |
| public int[] _x = null; | |
| [GlobalSetup] | |
| public void Setup() | |
| { | |
| _x = new int[10000]; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Bench92 | |
| { | |
| [Benchmark(Baseline = true)] | |
| [MethodImpl(MethodImplOptions.NoInlining)] | |
| [Arguments(0)] | |
| public int A(int x) | |
| { | |
| try { _ = 1; } catch { } | |
| for (int i = 0; i < 10000; i++) { | |
| x++; x++; x++; x++; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Bench92 | |
| { | |
| [Benchmark(Baseline = true)] | |
| [MethodImpl(MethodImplOptions.NoInlining)] | |
| [Arguments(0)] | |
| public int A(int x) | |
| { | |
| try { _ = 1; } catch { } | |
| for (int i = 0; i < 1000; i++) | |
| x++; |
NewerOlder