Skip to content

Instantly share code, notes, and snippets.

@aensidhe
aensidhe / 01. Program.cs
Created June 20, 2019 06:10
stackalloc valuetuples
using System;
namespace Unsafe
{
class Program
{
static unsafe void Main(string[] args)
{
var v = stackalloc (int, int)[]
{
@aensidhe
aensidhe / 00.results.md
Last active April 4, 2020 08:02
Compiler still can't write if for me. M3 variant - all credits to @Ilchert
BenchmarkDotNet=v0.12.0, OS=Windows 10.0.18363
Intel Core i7-8750H CPU 2.20GHz (Coffee Lake), 1 CPU, 12 logical and 6 physical cores
.NET Core SDK=3.1.100
  [Host]     : .NET Core 3.1.0 (CoreCLR 4.700.19.56402, CoreFX 4.700.19.56404), X64 RyuJIT
  Job-TJOYHS : .NET Core 2.2.8 (CoreCLR 4.6.28207.03, CoreFX 4.6.28208.02), X64 RyuJIT
  Job-OVZXZY : .NET Core 3.1.0 (CoreCLR 4.700.19.56402, CoreFX 4.700.19.56404), X64 RyuJIT