Hi,

I just started developing with python and google app engine and my
first project is to build a small easy proxy server to enable cross
domain xml requests from the client. I'm experiencing logn response
times in all python handlers. Static files as being served fast but
python handlers are loading slow 800ms - 1.5 seconds. For instance,
here is my default page that (for now) just loads an index.html static
file as template:

import cgi
import urllib
import os
import wsgiref.handlers
from google.appengine.ext import webapp
from google.appengine.api import urlfetch
from google.appengine.ext.webapp import template

class MainController(webapp.RequestHandler):

        def get(self):

                template_values = {}

                path = os.path.join(os.path.dirname(__file__), 'index.html')
                self.response.out.write(template.render(path, template_values))

def main():
        application = webapp.WSGIApplication([('/',
MainController)],debug=True)
        wsgiref.handlers.CGIHandler().run(application)

if __name__ == "__main__":
        main()




Anyone that can tell me why the load times are so slow? You can see it
in action here: http://blirdetsol.appspot.com/

--

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


Reply via email to