Skip to content

Instantly share code, notes, and snippets.

View daiplusplus's full-sized avatar
💀

Dai daiplusplus

💀
View GitHub Profile
# Main
L0000 push rdi
L0001 push rsi
L0002 push rbp
L0003 push rbx
L0004 sub rsp, 0x58
L0008 vzeroupper
L000b xor eax, eax
L000d mov [rsp+0x50], rax
@daiplusplus
daiplusplus / gist:51070c45841ea6d022454d85e399f903
Created August 11, 2024 23:36
Microsoft.Media.Player.dll\NETNATIVEBUILDINFO
Build Type: ret
Tool chain:
ilc.exe : 2.2.31116.00 built by: PROJECTNREL
nutc_driver.exe : 2.2.31116.00 built by: PROJECTNREL
rhbind.exe : 2.2.31116.0 built by: PROJECTNREL
sg.exe : 2.2.31116.00 built by: PROJECTNREL
Framework:
Activators.Implementation.dll : 11.2406.13.0
@daiplusplus
daiplusplus / Benchmark_Dictionary_IReadOnlyDictionary.cs
Last active September 25, 2025 22:29
Dictionary<K,V> vs IReadOnlyDictionary<K,V>
using System;
using System.Collections.Generic;
using BenchmarkDotNet.Running;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Reports;
namespace DictInterBench;
-- query 1: index seek as expected
SELECT COUNT_BIG(*) FOR_YOU
FROM dbo.REEEEEEEEEEECOMPILE ree
WHERE 1 = NULL OR (ree.COL2 > 0)
OPTION (RECOMPILE, QUERYTRACEON 8605, QUERYTRACEON 8606, QUERYTRACEON 8607, QUERYTRACEON 3604)