awesome-repositories.com
Blog
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
bytedance avatar

bytedance/sonic

0
View on GitHub↗
9,492 stars·455 forks·Go·Apache-2.0·7 vues

Sonic

Sonic is a high-performance Go JSON serialization library that provides tools for encoding and decoding native data structures. It functions as a JIT-accelerated encoder, a JSON AST parser, a stream processor, and a lazy decoder.

The project utilizes just-in-time machine code generation to optimize the encoding of large data schemas and employs a JIT assembler to maximize serialization and deserialization speeds. It features a precompiled schema warmup process to prevent latency spikes during initial execution and leverages SIMD hardware instructions for accelerated parsing.

The library covers a broad range of processing capabilities, including AST-based document manipulation for indexing and querying without full deserialization, and lazy decoding to extract specific values by reading only requested keys. It supports memory-efficient large-scale streaming for datasets that exceed system memory and uses zero-copy string referencing to reduce allocations. Additional utilities include visitor-based traversal for custom type mapping, numeric precision control, and syntax validation.

Features

  • JSON Serialization Libraries - Acts as a high-performance Go library for converting native data structures to and from JSON using JIT acceleration.
  • SIMD Parsers - Leverages SIMD hardware instructions to process multiple bytes of JSON data simultaneously for high-speed parsing.
  • JSON Serializers - Implements highly optimized conversion of Go data structures into JSON formats for transmission or storage.
  • JSON - Provides high-performance parsing of JSON strings and byte slices into native Go data structures.
  • JSON Processing - Provides ultra-low CPU and memory overhead for high-performance JSON serialization and deserialization in latency-sensitive applications.
  • JIT-Accelerated Encoders - Uses just-in-time machine code generation to optimize the encoding of large data schemas for maximum speed.
  • Lazy JSON Scanners - Defers parsing of JSON values by reading only the requested keys to minimize memory overhead.
  • Hardware-Accelerated JSON Processing - Implements hardware-accelerated conversion of native data structures to JSON strings and back.
  • JIT Compilation Engines - Implements a JIT engine that generates native machine code at runtime to maximize serialization and deserialization speeds.
  • Object Serialization - Converts native Go objects into JSON byte slices or formatted strings with support for raw message embedding.
  • Visitor-Based Parsing - Uses a preorder traversal mechanism to parse JSON into custom types without intermediate representations.
  • Visitor Traversals - Implements a visitor-based traversal mechanism to parse JSON structures into custom non-standard types.
  • JSON Data Parsers - Allows efficient retrieval of specific values or paths from JSON documents without the overhead of full decoding.
  • JSON Document Manipulation - Provides an abstract syntax tree for modifying and indexing JSON documents without requiring full object deserialization.
  • AST Parsers - Provides a JSON AST parser for efficient searching and modification of documents without full deserialization.
  • JIT Schema Compilation - Warms up the JIT assembler for large schemas to prevent request timeouts and memory spikes.
  • AST Path Querying - Provides the ability to parse JSON into an AST for searching and modifying specific data paths.
  • JSON - Implements a stream processor to handle massive JSON datasets incrementally without exhausting system memory.
  • Stream Encoding - Writes native objects as JSON to output streams with configurable indentation and HTML escaping.
  • Zero-Copy Deserialization - Optimizes memory by referencing strings directly from the source buffer instead of allocating new memory.
  • JSON Path Navigation - Retrieves specific values from JSON documents using keys or indices without deserializing the entire structure.
  • JSON Raw Value Streaming - Defers the parsing of JSON values by storing them as raw byte slices for subsequent processing.
  • JIT Warmup - Ships a precompiled schema warmup process to prevent latency spikes during the first execution of large data schemas.
  • Warm-up Utilities - Precompiles serialization logic for large schemas to ensure stable performance during the first execution.
  • Serialization Configurations - Offers a configuration system to control HTML escaping, key sorting, and compact formatting of JSON output.
  • Traitement JSON - High-performance JSON parser.
  • Configuration Management - Listed in the “Configuration Management” section of the Awesome Go awesome list.
  • Gestion de configuration - Fast JSON serialization and deserialization.

Historique des stars

Graphique de l'historique des stars pour bytedance/sonicGraphique de l'historique des stars pour bytedance/sonic

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Alternatives open source à Sonic

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Sonic.
  • fasterxml/jacksonAvatar de FasterXML

    FasterXML/jackson

    9,740Voir sur GitHub↗

    Jackson is a Java data binding framework and multi-format data serializer used to translate data structures into native language objects. It functions as a JSON data binding library and a streaming parser that reads and writes data as discrete tokens to process large datasets with minimal memory. The project distinguishes itself through a bytecode serialization accelerator that replaces standard reflection with generated bytecode to increase data binding speed. It employs a module-based extensibility model to support a wide range of formats beyond JSON, including XML, YAML, CSV, TOML, and bin

    hacktoberfestjacksonjava-json
    Voir sur GitHub↗9,740
  • tidwall/gjsonAvatar de tidwall

    tidwall/gjson

    15,521Voir sur GitHub↗

    gjson is a Go JSON parser designed for schema-less reading and value extraction. It allows for the retrieval of specific data from JSON documents using dot-notation paths without requiring the definition of predefined Go structs. The library provides tools for path-based querying, including the use of wildcards and index-based queries to locate data within objects and arrays. It also functions as a JSON lines processor, treating multi-line documents as arrays to iterate and query individual entries. Additional capabilities include converting JSON values into native Go types such as strings,

    Go
    Voir sur GitHub↗15,521
  • jprichardson/node-fs-extraAvatar de jprichardson

    jprichardson/node-fs-extra

    9,610Voir sur GitHub↗

    node-fs-extra is a Node.js file system extension that provides a set of additional methods to simplify common file and directory operations. It functions as a recursive directory manager, a JSON file processor, and a file asset manipulator, extending the standard library to provide high-level utilities for managing assets on disk. The project distinguishes itself through recursive capabilities, such as duplicating or removing nested folder structures and ensuring that all missing parent directories are automatically generated when creating files or symbolic links. It also integrates a JSON se

    JavaScriptcopydeletefilesystem
    Voir sur GitHub↗9,610
  • swiftyjson/swiftyjsonAvatar de SwiftyJSON

    SwiftyJSON/SwiftyJSON

    22,951Voir sur GitHub↗

    SwiftyJSON is a Swift JSON parsing library and data wrapper designed to simplify the reading and manipulation of JSON structures. It provides a toolkit for converting raw JSON strings into structured formats without requiring manual type casting or optional chaining for every value. The library focuses on simplifying nested data extraction through subscript-based value access and recursive data resolution. It ensures optional-safe value retrieval by returning default empty values instead of crashing when encountering missing keys or out-of-bounds array indices. The project includes capabilit

    Swift
    Voir sur GitHub↗22,951
Voir les 30 alternatives à Sonic→

Questions fréquentes

Que fait bytedance/sonic ?

Sonic is a high-performance Go JSON serialization library that provides tools for encoding and decoding native data structures. It functions as a JIT-accelerated encoder, a JSON AST parser, a stream processor, and a lazy decoder.

Quelles sont les fonctionnalités principales de bytedance/sonic ?

Les fonctionnalités principales de bytedance/sonic sont : JSON Serialization Libraries, SIMD Parsers, JSON Serializers, JSON, JSON Processing, JIT-Accelerated Encoders, Lazy JSON Scanners, Hardware-Accelerated JSON Processing.

Quelles sont les alternatives open-source à bytedance/sonic ?

Les alternatives open-source à bytedance/sonic incluent : fasterxml/jackson — Jackson is a Java data binding framework and multi-format data serializer used to translate data structures into… tidwall/gjson — gjson is a Go JSON parser designed for schema-less reading and value extraction. It allows for the retrieval of… jprichardson/node-fs-extra — node-fs-extra is a Node.js file system extension that provides a set of additional methods to simplify common file and… swiftyjson/swiftyjson — SwiftyJSON is a Swift JSON parsing library and data wrapper designed to simplify the reading and manipulation of JSON… alibaba/fastjson — Fastjson is a Java data binding framework and serialization library designed to convert objects to JSON strings and… miloyip/rapidjson — RapidJSON is a high-performance C++ library used for parsing and generating JSON data. It provides both document…