I'm looking at Mako's documentation and I found a TemplateLookup function for Mako: Using TemplateLookup. However, I've never seen this in Pyramid's documentation since I've never had to specify a modules directory. My questions are:
- What "modules" are created? Are these like precompiled .pyc files?
- Will using TemplateLookup vs. Pyramid's render() or render_to_response() make templates faster?
- Does Pyramid create these modules by default, but hidden where the user can't see?
- From the documentation, it says that these modules are cached in memory. How is this different than caching via Beaker?
Since everything on my site is dynamic content (except for the footer, basically), I want to figure out the best way to cache my templates or speed up rendering, and this looks like a simple way to speed up rendering, if it even does.