Earlier quoted context omitted.
Check out intern(): https://docs.python.org/2/library/functions.html#intern
Appears to be deprecated though.
Json vs. simplejson vs. ujson
31–40 of 75 posts
Re: Json vs. simplejson vs. ujson
#32Plus, AFAIK, at least in Python 3 json IS simplejson (but a few version older). So every comparison of these libraries is going to give different results over time (likely, with difference getting smaller). Of course, simpejson is the newer thing of the same, so it's likely to be better.
Re: Json vs. simplejson vs. ujson
#33The usage of percentages in the article is wrong. 6 is not 150% faster than 4.
Re: Json vs. simplejson vs. ujson
#34How hard is it to draw a bar graph? I'd imagine it is easier than creating an ASCII table and then turning that into an image, but I've never experimented with the latter.
Re: Json vs. simplejson vs. ujson
#35I just want to add another library in here which – at least in my world – is replacing json as the number one configuration and serialisation format. It's called libucl and it's main consumer is probably the new package tool in FreeBSD: `pkg` Its syntax is nginx-like but can also parse strict json. It's pretty fast too. More info here: https://github.com/vstakhov/libucl
At one point I looked into using it, but there werent any python bindings at the time, and I didnt have the time (for the project) to write any. Are there any good language libs for it these days?
Re: Json vs. simplejson vs. ujson
#36Re: Json vs. simplejson vs. ujson
#37So I can't serialize things with ultrajson that aren't serializable? I must be missing something in this statement.
> The verdict is pretty clear. Use simplejson instead of stock json in any case...
The verdict seems clear (based solely on the data in the post) that ultrajson is the winner.
Re: Json vs. simplejson vs. ujson
#38So I can't serialize things with ultrajson that aren't serializable? I must be missing something in this statement.
> The verdict is pretty clear. Use simplejson instead of stock json in any case...
The verdict seems clear (based solely on the data in the post) that ultrajson is the winner.
Re: Json vs. simplejson vs. ujson
#39I just want to add another library in here which – at least in my world – is replacing json as the number one configuration and serialisation format. It's called libucl and it's main consumer is probably the new package tool in FreeBSD: `pkg` Its syntax is nginx-like but can also parse strict json. It's pretty fast too. More info here: https://github.com/vstakhov/libucl