5 Repos
Memory allocation strategies that ensure buffers have trailing padding to support wide vector loads.
Distinct from Cache-Aware Memory Access: Distinct from general cache-aware access: specifically addresses the padding requirement for SIMD memory safety.
Explore 5 awesome GitHub repositories matching software engineering & architecture · SIMD Buffer Padding. Refine with filters or upvote what's useful.
simdjson is a high-performance JSON parser that utilizes SIMD instructions to process gigabytes of data per second. It functions as a SIMD JSON parser, a multithreaded NDJSON processing library, a UTF-8 validation engine, and a tool for JSON minification and string building. The project focuses on high-throughput data processing, enabling the ingestion of massive JSON volumes and the verification of UTF-8 encoding standards. It includes dedicated capabilities for constructing JSON strings with optimized memory usage and removing unnecessary whitespace from documents to reduce file size. The
Allocates extra space at the end of buffers to allow wide SIMD loads without memory access violations.
The Disruptor is a lock-free inter-thread messaging library and high-performance event bus. It implements a concurrent ring buffer designed for high-concurrency and low-latency message sequencing. The project utilizes a specific messaging architecture to eliminate lock contention, enabling high-throughput event routing and the exchange of continuous event streams between threads. It ensures strict first-in-first-out ordering and immediate data visibility across processing threads. The library provides capabilities for lock-free data streaming, sequential data ordering, and sequence-based eve
Implements cache-line padding to eliminate false sharing and maximize CPU cache efficiency.
This project is a collection of educational resources and technical guides focused on Go performance optimization. It provides instruction on improving execution speed and reducing memory usage through code and architectural refinements. The guides cover advanced strategies for low-level programming, including the use of assembly for SIMD instructions and unsafe pointers for direct memory manipulation. It also details concurrency optimization techniques such as lock sharding and cache-line padding to reduce contention and improve hardware utilization. The material encompasses broad capabilit
Implements cache-line padding to prevent false sharing and reduce CPU cache coherence traffic.
Dieses Projekt ist ein verteilter Unique-ID-Generator, der darauf ausgelegt ist, 64-Bit global eindeutige und sortierbare Identifikatoren über mehrere Knoten hinweg zu erzeugen. Es implementiert einen Snowflake-kompatiblen Algorithmus, der Kollisionen verhindert, indem Zeitstempel, Worker-Identifikatoren und Sequenznummern in einer einzigen Ganzzahl kombiniert werden. Das System beinhaltet einen Worker-ID-Orchestrator, um eindeutige Maschinenidentitäten während des Instanz-Startups und der Migration mittels datenbankgestützter Strategien zuzuweisen und zu verwalten. Um den Anforderungsdurchsatz zu erhöhen und die Latenz zu reduzieren, nutzt es eine Ring-Buffer-Caching-Ebene, die Identifikatoren vorab generiert und einen schwellenwertbasierten Nachfüllmechanismus einsetzt. Die Software bietet Funktionen für die Verwaltung verteilter Datenbank-Keys, die Koordinierung von Systemknoten und die Konfiguration der Bit-Verteilung, um Concurrency-Anforderungen gegen die Systemlebensdauer abzuwägen. Sie beinhaltet zudem Utilities für das Parsen generierter Identifikatoren zurück in ihre ursprünglichen Komponenten.
Employs cache-line padding between buffer elements to eliminate false sharing and increase hardware throughput.
Dieses Projekt ist eine technische Referenz und eine Sammlung interner Analyse-Notizen, die sich auf die Go-Sprach-Runtime und den Compiler konzentrieren. Es bietet eine detaillierte Aufschlüsselung der Interna der Sprache, einschließlich Speicherverwaltung, Garbage Collection und des Ausführungsmodells des Schedulers. Das Material zeichnet sich durch Deep-Dives in Low-Level-Systemdetails aus, einschließlich einer Referenz für Go-Assembly-Instruktionen, Register-Nutzung und System-Call-Interfacing. Es analysiert spezifisch die interne Implementierung von Concurrency-Primitiven, wie den Goroutine-Scheduling-Mechanismus, Channel-Operationen und Mutex-Lock-Implementierungen. Die Abdeckung erstreckt sich auf die Compiler-Konstruktionstheorie, einschließlich lexikalischer und syntaktischer Analyse, sowie die Mechanik des Typsystems und des Interface-Managements. Es beschreibt zudem verschiedene Performance-Optimierungstechniken, Runtime-Diagnose-Utilities für Stack-Tracing und Netzwerk-I/O-Primitive.
Details the use of padding bytes to prevent CPU cache coherence traffic caused by false sharing.