卡普空(Capcom)宣布开源RE:Dox,一套为其下一代游戏引擎REX技术设计的结构化数据处理库1。该项目采用token-based架构,支持JSON、CBOR、MessagePack、TOML、XML、JSON5、HTML、CSV、INI和DOX等多种格式的序列化与反序列化操作1。
RE:Dox在性能上相比System.Text.Json实现了显著提升,顺序反序列化速度快约1.8倍,并行反序列化快约2.8倍,序列化快约1.6倍1。内存效率方面也表现出色,以canada.json文件为例,RE:Dox的反序列化内存占用约2.56 MB,而System.Text.Json则需约8.53 MB1。该库提供可编辑的token DOM、格式转换、自动并行反序列化以及JSON5trivia保留等核心功能1。此外,RE:Dox还包含System.Text.Json、Newtonsoft.Json和DataContractJsonSerializer的兼容层,便于现有项目集成1。该项目采用Apache 2.0许可证开源发布,需.NET 10或更高版本运行环境1。
Capcom has released RE:Dox as an open-source project, a structured data engine designed for its next-generation REX game engine technology 1. The library employs a token-based architecture and supports serialization and deserialization across multiple formats including JSON, CBOR, MessagePack, TOML, XML, JSON5, HTML, CSV, INI, and DOX 1.
Performance benchmarks demonstrate significant improvements over System.Text.Json, with sequential deserialization approximately 1.8 times faster, parallel deserialization around 2.8 times faster, and serialization roughly 1.6 times faster 1. Memory efficiency gains are also notable, as evidenced by the canada.json test case consuming approximately 2.56 MB with RE:Dox compared to 8.53 MB with System.Text.Json 1. The engine provides an editable token DOM, format conversion capabilities, automatic parallel deserialization, and JSON5 trivia preservation 1. Compatibility layers for System.Text.Json, Newtonsoft.Json, and DataContractJsonSerializer are included to facilitate integration with existing codebases 1.
RE:Dox is distributed under the Apache 2.0 license and requires .NET 10 or higher to operate 1.
评论
还没有评论,欢迎留下第一条。