TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

2 pointsby bigstormover 14 years ago

2 comments

jameskiltonover 14 years ago
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?
foobarbazetcover 14 years ago
How about, you know, a benchmark against yajl? :)<p>Also, it's easy to be fast and incorrect, as the page outlines under "cons".