Re: SimpleJson is slow .... is there any C Compiled version ?

2008-07-28 Thread Joshua Kugler
sanket wrote: > Hello All, > > I have created an API which fetches some data from the database. > I am using simplejson to encode it and return it back. > > Now the problem is that, this API is being called for millions of > times in a sequence. > I ran a profiler and saw that most of the time i

Re: SimpleJson is slow .... is there any C Compiled version ?

2008-07-26 Thread Dan Stromberg
On Sat, 26 Jul 2008 00:49:20 -0700, Richard Levasseur wrote: > On Jul 25, 5:52 pm, Matt Nordhoff <[EMAIL PROTECTED]> wrote: >> Also, simplejson and python-cjson might not be entirely compatible: >> there's one character that one escapes and the other doesn't, or >> something. -- > > They also hav

Re: SimpleJson is slow .... is there any C Compiled version ?

2008-07-26 Thread Richard Levasseur
On Jul 25, 5:52 pm, Matt Nordhoff <[EMAIL PROTECTED]> wrote: > Also, simplejson and python-cjson might not be entirely compatible: > there's one character that one escapes and the other doesn't, or something. > -- They also have different interface. simplejson uses load/loads/dump/ dumps, whereas

Re: SimpleJson is slow .... is there any C Compiled version ?

2008-07-25 Thread sanket
On Jul 25, 5:52 pm, Matt Nordhoff <[EMAIL PROTECTED]> wrote: > sanket wrote: > > Hello All, > > > I have created an API which fetches some data from the database. > > I am using simplejson to encode it and return it back. > > > Now the problem is that, this API is being called for millions of > > t

Re: SimpleJson is slow .... is there any C Compiled version ?

2008-07-25 Thread Matt Nordhoff
sanket wrote: > Hello All, > > I have created an API which fetches some data from the database. > I am using simplejson to encode it and return it back. > > Now the problem is that, this API is being called for millions of > times in a sequence. > I ran a profiler and saw that most of the time is

SimpleJson is slow .... is there any C Compiled version ?

2008-07-25 Thread sanket
Hello All, I have created an API which fetches some data from the database. I am using simplejson to encode it and return it back. Now the problem is that, this API is being called for millions of times in a sequence. I ran a profiler and saw that most of the time is consumed in encoding my datab