Sunday, November 6, 2011

Re: Python data structures and the GIL

On 2011-11-06, at 22:07 , Tobia Conforto wrote:
>
> I also guessed that deserializing a complex data structure at every AJAX request would seriously impact performance.
Have you *tested* this assumption?

Because, to me and without any hard numbers, wanting to keep trees in-memory kind-of sounds like premature optimization. FWIW, on my machine reading a 60k XML document from memory (string or StringIO) takes cElementTree ~30ms and serializing it back takes roughly the same. While 60ms/request is not insignificant, I'm not sure it's worth the complexity you're trying to introduce.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate