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
·
mailru avatar

mailru/easyjson

0
View on GitHub↗
4,892 stars·461 forks·Go·MIT·9 vues

Easyjson

easyjson est un sérialiseur JSON haute performance et un analyseur optimisé pour la mémoire pour Go. Il fournit un générateur de code sans réflexion qui crée des méthodes Go statiques pour le marshaling et l'unmarshaling des données, éliminant le besoin de réflexion à l'exécution pour améliorer la vitesse d'exécution.

La bibliothèque réduit la surcharge CPU et mémoire grâce à plusieurs stratégies d'optimisation. Elle emploie un système de pools de tampons mémoire réutilisables pour minimiser les allocations sur le tas et la pression du garbage collector. De plus, elle utilise l'interning de chaînes pour dédupliquer les valeurs répétées et le référencement de chaînes zéro-copie pour pointer vers des segments de tampon existants plutôt que d'allouer de nouvelles chaînes.

Le projet couvre le traitement JSON haute performance, la génération de code statique et la gestion avancée de la mémoire pour optimiser la conversion de données entre les structs Go et JSON.

Features

  • High-Performance JSON Encoders - Provides an optimized implementation for converting Go data structures into JSON text with minimal overhead.
  • JSON-to-Object Mappers - Provides high-performance mapping of JSON text into strongly typed Go structures.
  • Reflectionless Encoders - Provides a tool that generates static methods to avoid runtime reflection during JSON encoding.
  • JSON Serializers - Provides optimized utilities for transforming Go data structures into formatted JSON strings.
  • Reflectionless Code Generators - Ships a tool for creating custom marshaling and unmarshaling functions to eliminate runtime reflection.
  • Marshaling Code Generators - Generates type-specific marshaling functions at build time to avoid runtime reflection.
  • Memory-Efficient Parsing - Minimizes memory overhead during JSON parsing through string interning and buffer pooling.
  • JSON Serializers - Provides a high-performance library for encoding and decoding JSON data in Go without reflection.
  • JSON Memory Optimizations - Implements a parser that reduces allocations through string interning and reusable memory buffer pools.
  • Reflection-Free Serialization - Implements specialized marshaling methods that bypass runtime type inspection for maximum performance.
  • Reflectionless Serialization - Uses compile-time code generation to avoid runtime reflection overhead during JSON serialization.
  • Zero-Copy Parsing - Extracts data from input buffers by returning slices instead of allocating new memory strings.
  • Buffer-Based Memory Management - Uses raw binary buffers to handle JSON data for high-performance memory efficiency and reduced GC.
  • Constant String Referencing - Optimizes memory by referencing existing buffer segments instead of copying strings for short-lived objects.
  • String Deduplication - Reduces memory consumption by storing only one copy of duplicate strings encountered during parsing.
  • Go Performance Optimization - Improves execution speed and reduces memory allocations for Go applications handling high JSON traffic.
  • Schema-Tailored Unmarshaling - Maps JSON fields to struct members using generated logic tailored to the specific data schema.
  • Reusable Buffer Pools - Utilizes recycled memory buffers to minimize heap allocations and garbage collection pressure.
  • Traitement JSON - Fast JSON serialization.

Historique des stars

Graphique de l'historique des stars pour mailru/easyjsonGraphique de l'historique des stars pour mailru/easyjson

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

Questions fréquentes

Que fait mailru/easyjson ?

easyjson est un sérialiseur JSON haute performance et un analyseur optimisé pour la mémoire pour Go. Il fournit un générateur de code sans réflexion qui crée des méthodes Go statiques pour le marshaling et l'unmarshaling des données, éliminant le besoin de réflexion à l'exécution pour améliorer la vitesse d'exécution.

Quelles sont les fonctionnalités principales de mailru/easyjson ?

Les fonctionnalités principales de mailru/easyjson sont : High-Performance JSON Encoders, JSON-to-Object Mappers, Reflectionless Encoders, JSON Serializers, Reflectionless Code Generators, Marshaling Code Generators, Memory-Efficient Parsing, JSON Memory Optimizations.

Quelles sont les alternatives open-source à mailru/easyjson ?

Les alternatives open-source à mailru/easyjson incluent : ibireme/yyjson — yyjson is a high-performance C library for parsing, serializing, and manipulating JSON data structures. It functions… json-iterator/java — This library is a high-performance JSON processing tool for Java designed to handle data serialization and… square/moshi — Moshi is a JSON serialization library and parser for Kotlin and Java. It functions as a reflectionless JSON encoder… json-iterator/go — This project is a high-performance JSON library for Go, serving as a replacement for the standard encoding/json… tencent/rapidjson — RapidJSON is a header-only C++ library designed for high-performance parsing, generation, and manipulation of JSON… alibaba/fastjson2 — fastjson2 is a high-performance Java library used for serializing and deserializing Java objects to and from JSON…

Alternatives open source à Easyjson

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Easyjson.
  • ibireme/yyjsonAvatar de ibireme

    ibireme/yyjson

    3,788Voir sur GitHub↗

    yyjson is a high-performance C library for parsing, serializing, and manipulating JSON data structures. It functions as a memory-efficient data tool that utilizes custom memory pools and contiguous block allocation to minimize fragmentation and overhead. The project distinguishes itself as a SIMD JSON processor, using hardware-accelerated vector instructions for rapid string validation and parsing. It provides a toolkit for querying, modifying, and patching nested JSON objects and arrays through pointer-based access and path expressions. The library covers a broad range of data manipulation

    C
    Voir sur GitHub↗3,788
  • json-iterator/javaAvatar de json-iterator

    json-iterator/java

    1,566Voir sur GitHub↗

    This library is a high-performance JSON processing tool for Java designed to handle data serialization and deserialization with minimal resource consumption. It provides a framework for transforming complex object graphs into JSON strings and mapping raw input directly to typed class properties. The library distinguishes itself by utilizing compile-time code generation and reflection-free mapping to eliminate expensive runtime overhead. By employing iterator-based stream parsing and zero-allocation buffer management, it processes large or deeply nested data structures while reducing garbage c

    Javadeserializationjavajson
    Voir sur GitHub↗1,566
  • square/moshiAvatar de square

    square/moshi

    10,138Voir sur GitHub↗

    Moshi is a JSON serialization library and parser for Kotlin and Java. It functions as a reflectionless JSON encoder that converts typed objects to JSON strings and parses JSON data back into language objects. The library distinguishes itself through compile-time adapter generation, which removes the performance overhead associated with runtime reflection. It also provides a polymorphic JSON mapper that uses type identifiers to resolve and instantiate specific subclasses of a common base type. The framework supports custom adapter definitions for specialized type conversion, including nullabi

    Kotlin
    Voir sur GitHub↗10,138
  • json-iterator/goAvatar de json-iterator

    json-iterator/go

    13,891Voir sur GitHub↗

    This project is a high-performance JSON library for Go, serving as a replacement for the standard encoding/json package. It provides a serialization engine for encoding and decoding data structures, alongside a schemaless parser for extracting specific values from JSON blobs using paths. The library distinguishes itself through a focus on reducing CPU and memory overhead. It implements a high-performance encoder that utilizes buffer reuse and reduced float precision to increase data throughput. Broad capability areas include data serialization, high-performance JSON processing, and schema-le

    Godeserializationgogolang
    Voir sur GitHub↗13,891
Voir les 30 alternatives à Easyjson→