> I wonder whether the builtin web server of web.py (CherryPy?)
> makes more sense? Or is it not for production use? Anyway, I'm
> very interested in your results, because I want to use web.py on
> a similar platform as yours. Please keep us/me informed! TIA!
I haven't fixed the caching but have dramatically decreased the times
pages load by 10x by compiling the templates first and rendering them
with GAE.
All you need to do is compile your templates with "/usr/lib/python2.6/
site-packages/web.py-0.33-py2.6.egg/web/template.py --compile /path/to/
templates" then
add the following to code.py:
web.template.render = web.template.Render =
web.template.GAE_Render
render = web.template.render('templates/')
also make sure web.config.debug=False ( cause I didn't have it set
anywhere but it seemed to of defaulted to True )
Results were found using web.http.profiler as follows:
app.run(web.http.profiler)
Here are my findings:
web.config.debug = True and with normal templetor:
http://pastebin.com/m2bdcd447
web.config.debug = True and with GAE:
http://pastebin.com/m5954a153
Thanks Anand for your help.
--
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en.