Would it benefit to pre-compile jade templates on production in express
When using jade-lang on production, would I benefit from having some form of a middleware that pre-compiles all the .jade views and then uses them in res.render? Or does that automatically happen when you do NODE_ENV=production? I'm simply exploring options on how to speed-up jade rendering on production. When Jade compiles the template, the template is cached. In production environment if you warm up the cache, then there is no need to pre-compile template. Even if you don't, the template will be cached after its first compilation. I recommend you to have a look Jade's source code to better