JSON最快的读/写的C ++ [英] Fastest JSON reader/writer for C++

查看:436
本文介绍了JSON最快的读/写的C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个C ++ JSON解析器和放大器;作家。速度和可靠性是非常关键的,我不在乎,如果界面漂亮与否,如果是升压型或没有,甚至一个C解析器是罚款(如果它是比C ++的情况会更快)。

I need a C++ JSON parser & writer. Speed and reliability are very critical, I don't care if the interface is nice or not, if it's Boost-based or not, even a C parser is fine (if it's considerably faster than C++ ones).

如果有人有可用JSON解析器的速度体验,请大家指教。

If somebody has experience with the speed of available JSON parsers, please advise.

推荐答案

http://lloyd.github.com/yajl/

http://www.digip.org/jansson/

真的不知道他们是如何比较速度,但第一个貌似正确的想法扩展到非常大的JSON数据,因为它在一个时间只解析一小块,使他们不必容纳所有内存中的数据一次(这可以更快或更慢取决于库/用例)

Don't really know how they compare for speed, but the first one looks like the right idea for scaling to really big JSON data, since it parses only a small chunk at a time so they don't need to hold all the data in memory at once (This can be faster or slower depending on the library/use case)

这篇关于JSON最快的读/写的C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆