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.

Whats the fastest JSON C serialization library?

10 pointsby edsiper2almost 12 years ago

2 comments

mh-almost 12 years ago
Check out ultrajson (aka ujson) - (also see ujson4c[1] in the same org)<p>as far as serializing, ujson is 7x faster than simplejson in the <i>worst</i> cases I&#x27;ve seen (disclaimer: using the Python bindings.)<p>[1] <a href="https://github.com/esnme/ultrajson" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;esnme&#x2F;ultrajson</a><p>[2] <a href="https://github.com/esnme/ujson4c" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;esnme&#x2F;ujson4c</a> - &quot;A more user friendly layer for decoding JSON in C&#x2F;C++ based on [..] UltraJSON&quot;<p>n.b.: There also exists a class of &quot;simplified&quot; JSON serializers. They implement <i>most</i> of the JSON specification but leave out some features (or restrictions) that make it more expensive. I don&#x27;t know anything about these, perhaps another commenter can chime in.
JoachimSchipperalmost 12 years ago
If you need &quot;fastest&quot;, are you really sure you need &quot;JSON&quot;? JSON has a lot to recommend it, but there are certainly <i>faster</i> alternatives.
评论 #5945306 未加载