On Tue, Feb 16, 2010 at 10:47 AM, brendon <[email protected]> wrote:
> I am running web.py on an embedded arm platform to make an application
> to control hardware on a LAN. I run it in angstrom (linux) and use
> lighttpd as the server and sqlite3 as the db system. My problem is
> that the first time a template/url is called it takes up to 30 seconds
> before it gets a response from the server. Once I refresh the page it
> performs much faster but I can still still get response 200 from all
> the files it calls in firebug. I am looking at ways to cache more data
> using mod_cache but I would also like to reduce the time it takes to
> get an initial response from the server. Is it time I change
> templating engine to mako??? or maybe use wsgi instead of fastCGI??
>
> Has anyone had similiar issues and/or how can i reduce this initial
> time to get a response from the server.

Can you try running profiler and see where it is spending more time?

If you think the compiling templates is taking more time, then you can
compile the templates to python code and see if it helps.

You need to add the following code to make it work.

web.template.render = web.template.Render = web.template.GAE_Render

See http://webpy.org/cookbook/templates_on_gae for more info.

Anand

-- 
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.

Reply via email to