Hi Richard, On Wed, Nov 23, 2011 at 7:18 AM, Richard Arrano <[email protected]> wrote: > Hello, > Quick question regarding multithreading in Python 2.7: > I have some requests that call 2-3 functions that call the memcache in > each function. It would be possible but quite complicated to just use > get_multi, and I was wondering if I could simply put each function > into a thread and run the 2-3 threads to achieve some parallelism. > Would this work or am I misunderstood about what we can and cannot do > with regards to multithreading in 2.7?
This will certainly work put I'm not sure that it would be worth the complexity. Fetching a value from memcache usually takes <5ms so parallelizing 3 memcache gets is going to save you ~10ms. Cheers, Brian > Thanks, > Richard > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" 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/google-appengine?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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/google-appengine?hl=en.
