Skip to content

Instantly share code, notes, and snippets.

View tdkkdt's full-sized avatar

Dmitry Yudakov tdkkdt

View GitHub Profile
new SourcePropertySymbol() in Microsoft.CodeAnalysis.CSharp.Symbols, Microsoft.CodeAnalysis.CSharp.dll [246]
SourcePropertySymbol.Create() in Microsoft.CodeAnalysis.CSharp.Symbols, Microsoft.CodeAnalysis.CSharp.dll [246]
SourceMemberContainerTypeSymbol.AddNonTypeMembers() in Microsoft.CodeAnalysis.CSharp.Symbols, Microsoft.CodeAnalysis.CSharp.dll [246]
SourceMemberContainerTypeSymbol.AddDeclaredNontypeMembers() in Microsoft.CodeAnalysis.CSharp.Symbols, Microsoft.CodeAnalysis.CSharp.dll [246]
SourceMemberContainerTypeSymbol.BuildMembersAndInitializers() in Microsoft.CodeAnalysis.CSharp.Symbols, Microsoft.CodeAnalysis.CSharp.dll [246]
SourceMemberContainerTypeSymbol.GetMembersAndInitializers() in Microsoft.CodeAnalysis.CSharp.Symbols, Microsoft.CodeAnalysis.CSharp.dll [246]
SourceMemberContainerTypeSymbol.MakeAllMembers() in Microsoft.CodeAnalysis.CSharp.Symbols, Microsoft.CodeAnalysis.CSharp.dll [246]
SourceMemberContainerTypeSymbol.GetMembersByNameSlow() in Microsoft.CodeAnalysis.CSharp.Symbols, Microsoft.Cod

BenchmarkDotNet=v0.11.3, OS=Windows 10.0.18362

Intel Core i7-6700 CPU 3.40GHz (Skylake), 1 CPU, 8 logical and 4 physical cores

.NET Core SDK=3.0.100-preview9-014004

[Host] : .NET Core 3.0.0-preview9-19423-09 (CoreCLR 4.700.19.42102, CoreFX 4.700.19.42104), 64bit RyuJIT

RyuJitX64 : .NET Core 3.0.0-preview9-19423-09 (CoreCLR 4.700.19.42102, CoreFX 4.700.19.42104), 64bit RyuJIT

@tdkkdt
tdkkdt / RowsLikeExcel.cs
Created January 11, 2019 10:04
Manage rows like an Excel
using System;
using System.Collections.Generic;
using NUnit.Framework;
namespace LikeExcel {
class Program {
static void Main() {
}
}
@tdkkdt
tdkkdt / ListArrayIEnumerable results.
Created December 23, 2018 18:35
ListArrayIEnumerable results.
Method | Job | Jit | Platform | ItemsCount | Mean | Error | StdDev | Median | Ratio | RatioSD |
-------------------------- |------------- |---------- |--------- |----------- |----------------:|----------------:|----------------:|----------------:|------:|--------:|
ForEachArrayAsArray | LegacyJitX64 | LegacyJit | X64 | 10 | 73.61 ns | 16.4262 ns | 48.4331 ns | 105.16 ns | ? | ? |
ForEachArrayAsIEnumerable | LegacyJitX64 | LegacyJit | X64 | 10 | 960.62 ns | 56.1115 ns | 151.7007 ns | 1,066.67 ns | ? | ? |
ForEachListAsList | LegacyJitX64 | LegacyJit | X64 | 10 | 168.26 ns | 49.1610 ns | 144.9522 ns | 60.09 ns | ? | ? |
ForEachListAsIEnumerable | LegacyJitX64 | LegacyJit | X64 | 10 | 1,028.29 ns | 65.2682 ns | 174.2140 ns | 1,006.57 ns | ? | ? |
@tdkkdt
tdkkdt / ListArrayIEnumerable.cs
Last active December 23, 2018 18:34
List vs Array
using System.Collections.Generic;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
namespace ConsoleApp2 {
[LegacyJitX64Job, LegacyJitX86Job, RyuJitX64Job]
public class Benchmark {
[Params(10, 100, 1000, 10000, 100000, 1000000)]
public int ItemsCount { get; set; }
@tdkkdt
tdkkdt / fakebrush.cs
Last active October 31, 2018 19:27
Get value of a internal field.
using System;
using System.Drawing;
using System.Reflection;
using System.Runtime.InteropServices;
namespace ConsoleApplication95 {
class Program {
[StructLayout(LayoutKind.Explicit)]
class BrushManager {