2 repository-uri
Techniques for copying primitive arrays directly in memory to maximize serialization throughput.
Distinct from Zero-Copy Memory Mappings: Distinct from Zero-Copy Memory Mappings: focuses on high-speed copying of primitive arrays rather than mapping files to memory.
Explore 2 awesome GitHub repositories matching data & databases · Direct-Memory Struct Copying. Refine with filters or upvote what's useful.
MessagePack-CSharp is a high-performance binary serialization library for .NET applications that converts object graphs into the MessagePack format. It functions as a C# data serialization toolkit and a polymorphic binary encoder capable of handling abstract classes and interfaces using union keys to identify concrete derived types. The library provides a binary format transcoder to transform binary data into human-readable JSON for debugging. It supports ahead-of-time formatter generation to avoid runtime overhead and implements LZ4 binary compression to reduce the size of serialized data.
Provides high-throughput serialization by performing unsafe memory copies of primitive arrays to bypass element-by-element processing.
MemoryPack este o bibliotecă de serializare binară de înaltă performanță pentru C# și Unity. Oferă un pipeline de date zero-allocation și un framework de evoluție a schemei conceput pentru a minimiza alocările de memorie și overhead-ul de codificare. Proiectul utilizează generatoare de sursă la momentul compilării pentru a evita reflexia la runtime și implementează un format binar zero-encoding pentru un throughput maxim. Se distinge printr-o abordare zero-allocation care reutilizează instanțele de obiecte pentru a reduce presiunea asupra garbage collector-ului și copiază layout-ul de memorie al structurilor neadministrate direct în fluxurile binare. Biblioteca acoperă versionarea schemei binare pentru compatibilitate inversă și suportă streaming-ul asincron al colecțiilor pentru seturi mari de date. Include un generator de tipuri TypeScript pentru a sincroniza structurile de date între C# și TypeScript pentru schimbul de date cross-language. Capabilitățile suplimentare includ compresia payload-ului, implementări personalizate de formatter și callback-uri de serializare.
Implements high-speed serialization by copying the memory layout of blittable structs directly to the output stream.