TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Vjson - claims to be fastest json parser written in c++

2 点作者 bigstorm超过 14 年前

2 条评论

jameskilton超过 14 年前
I'm confused. json.cpp is pure C code with custom atoi and atof implementations. block_allocator.cpp uses malloc and free with reinterpret_cast and some STL (max and swap).<p>The other C++ is in main, which can of course be ignored if this is embedded into another system.<p>It's clean code, very easy to follow, and probably works great, but why isn't it just written purely in C? Wouldn't that be faster <i>and</i> smaller?
foobarbazetc超过 14 年前
How about, you know, a benchmark against yajl? :)<p>Also, it's easy to be fast and incorrect, as the page outlines under "cons".