Re: Django, Simplejson and speedups

2008-11-30 Thread Malcolm Tredinnick
On Fri, 2008-11-28 at 20:49 -0800, [EMAIL PROTECTED] wrote: [...] > > I wouldn't mind testing for the C version and importing that > > conditionally, since Bob Ippolito does mention 10 - 150x speed ups for > > string processing there (quite believable for Python vs. C with > > intensive string pr

Re: Django, Simplejson and speedups

2008-11-28 Thread [EMAIL PROTECTED]
On Nov 28, 7:31 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > That's a bit of a universal claim and not really supportable. You don't > know what version the "system installed" one is for every system out > there. In some cases, the installed version will be slower. Very good point. Thanks

Re: Django, Simplejson and speedups

2008-11-28 Thread Malcolm Tredinnick
On Fri, 2008-11-28 at 19:05 -0800, [EMAIL PROTECTED] wrote: > I think there's actually a big win in favoring a system-installed > simplejson over Django's included version. The system-installed > package is actually orders of magnitude faster than Django's included > version. That's a bit of

Re: Django, Simplejson and speedups

2008-11-28 Thread [EMAIL PROTECTED]
I think there's actually a big win in favoring a system-installed simplejson over Django's included version. The system-installed package is actually orders of magnitude faster than Django's included version. That's reason enough to do some small code changes. In my opinion, this could all be s

Re: Django, Simplejson and speedups

2008-11-28 Thread Malcolm Tredinnick
On Fri, 2008-11-28 at 01:56 -0800, Johan Bergström wrote: > Simplejson has been getting some version increments lately and Django > hasn't been including them (there are tickets), which is - in my > opinion - okay. Constantly upgrading the included simplejson library > is an never ending rabbit c

Re: Django, Simplejson and speedups

2008-11-28 Thread Ludvig Ericson
On Nov 28, 2008, at 10:56, Johan Bergström wrote: > I still wonder if there's a better solution for somehow allowing users > to drop in their own simplejson without resorting to edit > django.utils.simplejson or overriding sys.modules. This would reduce > the need for upgrading the bundled package

Django, Simplejson and speedups

2008-11-28 Thread Johan Bergström
Simplejson has been getting some version increments lately and Django hasn't been including them (there are tickets), which is - in my opinion - okay. Constantly upgrading the included simplejson library is an never ending rabbit chase where required effort doesn't motivate possible benefits (read