RepositoryC++
BI

biojppm/rapidyaml

Rapid YAML - a library to parse and emit YAML, and do it fast.

763sao
146fork
26issue
4lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: custom-allocator

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: emitter

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: rapid

#1 Repository của tuần

🚀 Rapid YAML - Parse YAML nhanh đến từng byte

Zero-copy, in-situ, không phụ thuộc STL - rapidyaml xử lý YAML/JSON tối ứu từ x64 đến bare-metal.

rapidyaml (viết tắt ryml) là thư viện C++ dùng để parse và emit YAML, tập trung vào tốc độ. Không chỉ dừng ở đó, ryml còn hỗ trợ cả JSON và hoạt động trên mọi nền tảng từ PC đến chip nhúng không hệ điều hành. N

✨ Điểm nổi bật

  • Zero-copy in-situ parsing: parse trực tiếp trên buffer nguồn, không sao chép chuỗi.
  • Flat tree structure: cây dữ liệu lưu dưới dạng mảng index, không dùng virtual functions.
  • Exception-agnostic: tùy chọn sử dụng exceptions, longjmp() hoặc std::abort().
  • Custom allocator: hỗ trợ cấu hình bộ cấp phát bộ nhớ toàn cục và per-tree.
  • STL-independent: không phụ thuộc std containers, nhưng hỗ trợ serialize/deserialize chúng qua headers tùy chọn.
  • Single header / CMake: dùng như thư viện đơn header hoặc tích hợp qua CMake.
  • Multi-platform: hỗ trợ Visual Studio, clang, g++, Intel Compiler, và cả bare-metal/RISC-V.
  • Python & JavaScript: có sẵn trên PyPI và biên dịch qua Emscripten.

💡 Vì sao đáng chú ý

Khác với các thư viện YAML truyền thống như yaml-cpp, ryml tối ưu hoàn toàn cho tốc độ với kỹ thuật zero-copy và cấu trúc bộ nhớ flat. Kết quả benchmark cho thấy ryml nhanh gấp 10-70 lần so với yaml-cpp, đạt ~450MB/s khi parse JSON trên Linux.

Nhờ thiết kế không phụ thuộc STL và hỗ trợ custom allocator, ryml rất phù hợp cho môi trường nhúng, bare-metal hoặc bất kỳ dự án nào yêu cầu kiểm soát hoàn toàn bộ nhớ và hiệu năng.


#YAML #CPlusPlus #Parser #Serialization #OpenSource #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryGo
json-iterator/go

A high-performance 100% compatible drop-in replacement of "encoding/json"

13.8k
May 27, 2024
RepositoryC++
Light-City/CPlusPlusThings

C++那些事

43.6k
Oct 13, 2026
RepositoryC++
simdjson/simdjson

Parsing gigabytes of JSON per second : used by Facebook/Meta Velox, the Node.js runtime, ClickHouse, WatermelonDB, Apache Doris, Milvus, StarRocks

24.7k
Dec 1, 2026
RepositoryC++
Alinshans/MyTinySTL

Achieve a tiny STL in C++11

12.5k
Oct 27, 2024
RepositoryC++
Neargye/magic_enum

Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code

6.3k
Nov 30, 2026
RepositoryC++
andreasfertig/cppinsights

C++ Insights - See your source code with the eyes of a compiler

4.7k
Oct 26, 2026
RepositoryC++
pezy/CppPrimer

:books: Solutions for C++ Primer 5th exercises.

3.4k
Jul 30, 2023
RepositoryC++
stephenberry/glaze

Extremely fast, in memory, serialization, reflection, and RPC library for C++. JSON, BEVE, BSON, CBOR, CSV, JSONB, MessagePack, TOML, YAML, EETF

3.1k
Nov 30, 2026
RepositoryC++
Neargye/nameof

Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enum

2.4k
Nov 26, 2026