Re: Python data structures and the GIL

2011-11-06 Thread Masklinn
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 soun

Re: Python data structures and the GIL

2011-11-06 Thread Martin J. Laubach
One possibility that springs to mind is shared memory, either the sysv shmem variant or memory mapped files. mjl -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/ms

Python data structures and the GIL

2011-11-06 Thread Tobia Conforto
I have a Django app that does some heavy calculations for the user. At the start of a user's session it parses some source data and builds a complex data structure, in the form of big trees of cElementTree nodes (by themselves fast and small, being written in C). Then it allows the user to query a