I hope this may be helpful as others look for 2.7 optimizations. I just ported to 2.7 threadsafe: true. Am running on an F1 instance with very low instance memory footprint. Only testing right now, so QPS is essentially zero. After porting to 2.7, this line of code increased from about 200-300 ms to 2000-3000 ms:
html = urllib.unquote(htmlEsc) I have never had to worry about this statement/function before when testing under 2.5. For testing, I use the same html source being edited so that I can easily view it once rendered in Chrome. Fully indented etc. the html source is 33,726 characters (unescaped). When I saw this function call blow up, I worked my way through it, and the line above was the sole culprit for my 10x increase. I took the indent spaces out, and unescaped character count went to 21,738. Given this ~30% size reduction, that one line of code went from 2,000-3,000 cpu ms, back to 200-300 ms. Nothing else was changed, and the instance never gets near its F1 memory limit. I tested this numerous times, and the additional 12k characters always caused the 10x cpu ms increase. (And yes I am now going to do some more optimizations since this was a bit lazy in the first place.) Again, HTH -stevep -- 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.
