Malthe,

Thanks for the reply. I'm not sure I understand what you mean by
"which JSON library are you using?", are you referring to the server
side or the client side? On the server side I'm using the @jsonify
decorator that comes with Pylons, and within those controller methods
I'm using simplejson to translate the Ajax/JSON request. On the
JavaScript side I'm using the JSON native to the browser's JavaScript
implementation, or using json2.js if that's not available, as
determined by feature detection.

However, I will look at what you've suggested and see what I can do
with it.

Thanks!
Doug

On Dec 12, 11:35 am, Malthe Borch <[email protected]> wrote:
> On 12 December 2011 17:25, writeson <[email protected]> wrote:
>
> > I've got a pylons application that's got a memory leak, I think from
> > Ajax/JSON calls coming from the application JavaScript. How do I go
> > about debugging/finding this problem? I've read some stuff online
> > about using Dozer, but have not had any luck getting that running in
> > my Pylons application. If someone could offer me some help,
> > suggestions or pointers that would be greatly appreciated!
>
> Which JSON library are you using?
>
> If it's a bug in the C-code, then you could try (locally) doing the
> read/write operations a high (redundant) number of times, e.g.
>
>     for i in xrange(1000): data = loads(json_data)
>
> That should accelerate the issue.
>
> But you might simply be adding to e.g. a global, mutable structure
> (for instance a list set on a class).
>
> \malthe

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to