This file contains 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
namespace Demo | |
{ | |
public class CursedBuffer | |
{ | |
private readonly object[] data; | |
private readonly Pointer pointer; | |
public CursedBuffer(int size) | |
{ | |
data = new object[size]; |
This file contains 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; | |
namespace FiniteFieldShuffle | |
{ | |
/// <summary> | |
/// Program to demonstrate an algorithm that generates a permutation of the values 0 through some | |
/// maximum value using finite fields. | |
/// </summary> | |
public static class Program |
This file contains 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.Diagnostics; | |
using System.Numerics; | |
using System.Threading; | |
namespace MergeBenchmark | |
{ | |
internal static class Program | |
{ |
This file contains 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.Diagnostics; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace Test | |
{ |
This file contains 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
/// <summary> | |
/// Provides the ability to concatenate arrays of strings and arrays of character arrays into a | |
/// single string without performing intermediate copies of the strings/characters, nor the | |
/// arrays that contain them. | |
/// </summary> | |
/// <remarks> | |
/// Methods like `string.Concat( string[] )` make an intermediate copy of the array containing | |
/// the strings (but not the strings themselves). If you have a large array of strings, then | |
/// copying that array can represent a moderate amount of unnecessary work. For instance, | |
/// copying a 500k element array in a 64-bit process requires copying about 4 MB of memory. |
This file contains 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.IO; | |
using System.Xml; | |
using System.Xml.Schema; | |
namespace TestProject | |
{ | |
/// <summary> | |
/// Simple program to manually validate an XML document against a schema. | |
/// </summary> |