我要评分
获取效率
正确性
完整性
易理解

Introduction

This document provides the installation guide, detailed interface definition, and sample code of the Kunpeng Acceleration JSON Library (KACC_JSON).

KACC_JSON is a high-performance JSON function library provided by Huawei based on the Kunpeng platform. It uses SVE256 instructions to enhance JSON serialization and deserialization. By leveraging Kunpeng hardware advantages, KACC_JSON delivers higher performance than Gson, an open source Java library.

After a Java program is translated into a C++ program, it cannot use the JSON library in C++ directly because the interfaces are inconsistent with those of Google JSON (Gson). KACC_JSON provides JSON interfaces in C++ that are consistent with those of Gson. This allows the translated Java program to use Json serialization and deserialization functions without modifying Gson-related code. You can import related static library files and header files to application software to call corresponding instructions.

KACC_JSON is available only for Kunpeng processors. To achieve better performance, complete input parameter verification is not performed in KACC_JSON interfaces. Use valid input parameters, and invalid input parameters may cause errors.