Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mccutchen
· 15y ago · 0 comments
Note: In Python 2.6+, you can just `import json` instead of needing to install and import simplejson.
Comments
[–]
stock_toaster
15y ago
I believe that the python2.6 json module (basically forked form simplejson) is much slower than the current simplejson version. The speedups (simplejson rewrite) didn't get included until 2.7 as I recall (memory is vague on this point).
[–]
pjscott
15y ago
According to my un-reproducible benchmark, simplejson was 27x faster than built-in json. It's not a small difference.
[–]
stock_toaster
15y ago
Yeah, I remembered it being significant, but wow. That is larger than I recalled it being. Probably due to a very unscientific test at the time. ;)