Skip to content

Instantly share code, notes, and snippets.

View ZedDevStuff's full-sized avatar

Kouame Benoit Junior Augustin ZedDevStuff

View GitHub Profile
using System.Runtime.CompilerServices;
using osu.Framework.Graphics;
namespace ProjectHarmony.Game.Extensions;
public static class DrawableExtensions
{
private static readonly ConditionalWeakTable<Drawable, DrawableExtensionProperties> Properties = [];
extension(Drawable el)
{
using System;
using System.Text.Json;
namespace BridgeLib;
public struct Request
{
public int Id { get; set; }
public string MethodName { get; set; }
public string JsonData { get; set; }
@ZedDevStuff
ZedDevStuff / Program.cs
Created April 27, 2025 13:28
MemoryPack vs MessagePack benchmark
using System;
using System.Collections.Generic;
using System.Numerics;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
using MemoryPack;
using MessagePack;
public partial class Program
{