sonic-cpp
sonic-cpp copied to clipboard
A fast JSON serializing & deserializing library, accelerated by SIMD.
os:ubuntu 20 gcc:9 cmake:3.25 cat /proc/cpuinfo | grep avx2 flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts...
This PR provides a new handler that can parse json for a given schema.
频繁解析string,使用GetString和GetStringView都试了下,跟使用rapidjson的性能看着差不多呢?
F:\work\github\sonic-cpp\include\sonic/allocator.h(92,9): error C3861: '__builtin_ia32_pause': identifier not found 1>assert_test.cpp 1>document_test.cpp 1>F:\work\github\sonic-cpp\tests\document_test.cpp(17,10): fatal error C1083: Cannot open include file: 'dirent.h': No such file or directory 1>error_test.cpp 1>F:\work\github\sonic-cpp\include\sonic/error.h(95,3): error C2059: syntax error: '('...
__builtin_uaddll_overflow’在此作用域中尚未声明
Record possible optimizations and enhancements for sonic-cpp # Optimize: - [ ] use smallvec in parseimpl - [ ] port rust itoa # Enhancements - [ ] add JSON iterator...
有计划增加功能:在序列化时,增加对 key 的排序吗?
JSON rfc not allow inf/nan numbers, we call add a flag to support the extension.