Issue #7 resolved

cjson removal

adamnelson
created an issue

It seems like cjson is only nominally maintained at this point. I think it should be removed from the search, or put at the bottom.

Comments (9)

  1. Rune Halvorsen repo owner

    Is it unmaintained or just stable? JSON spec is frozen after all. I prefer to use speed as the selection metric, regardless of maintenance status. Of course if there are unmaintained packages with bugs, that's a different story.

  2. adamnelson reporter

    Any update on this? cjson is both unmaintained and has unpatched bugs (i.e. it's unstable). The vendors appear to be taking over responsibility for patching this on a per-vendor basis. I'd also be fine with cjson being reclaimed on PyPI or something.

  3. adamnelson reporter

    In case you're interested, here are my results on a Mac using pip installed json libraries in a virtual environment:

    (yipit-env)Adam-Nelsons-MacBook-Pro:tests adam$ python benchmark.py 
    Total  Read   Write  Implementation
    -----------------------------------
    0.322  0.129  0.193  django.utils.simplejson
    0.324  0.188  0.136  yajl
    0.326  0.130  0.196  simplejson
    0.350  0.174  0.176  jsonlib2
    0.420  0.160  0.259  cjson
    0.638  0.461  0.177  jsonlib
    4.229  1.824  2.405  jsonpickle
    7.358  4.930  2.427  json
    (yipit-env)Adam-Nelsons-MacBook-Pro:tests adam$ uname -a
    Darwin Adam-Nelsons-MacBook-Pro.local 10.6.0 Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST 2010; root:xnu-1504.9.26~3/RELEASE_I386 i386
    (yipit-env)Adam-Nelsons-MacBook-Pro:tests adam$ 
    
  4. adamnelson reporter

    And on Ubuntu 10.04 (64 bit):

    (dev-yipit-env)ubuntu@domU-12-31-39-16-8C-58:/var/www/dev-yipit-env/src/anyjson/tests$ python benchmark.py 
    Total  Read   Write  Implementation
    -----------------------------------
    0.385  0.211  0.173  yajl
    0.426  0.213  0.213  simplejson
    0.451  0.219  0.232  django.utils.simplejson
    0.490  0.206  0.284  jsonlib2
    0.495  0.154  0.341  cjson
    0.861  0.638  0.223  jsonlib
    5.660  2.585  3.075  jsonpickle
    9.127  6.186  2.941  json
    (dev-yipit-env)ubuntu@domU-12-31-39-16-8C-58:/var/www/dev-yipit-env/src/anyjson/tests$ uname -a
    Linux domU-12-31-39-16-8C-58 2.6.32-311-ec2 #23-Ubuntu SMP Thu Dec 2 11:14:35 UTC 2010 x86_64 GNU/Linux
    (dev-yipit-env)ubuntu@domU-12-31-39-16-8C-58:/var/www/dev-yipit-env/src/anyjson/tests$ 
    
  5. Rune Halvorsen repo owner

    Not good. I'll deprioritize cjson then. I guess it'll go to the end of the list, as removing it outright will probably break some people's setup. Can perhaps add a deprecation warning that triggers if that is the module that gets loaded.

  6. Log in to comment