layout: Outline the individual property cascading functions to reduce

I-cache footprint.

Reduces the size of `properties::cascade` from over 100K of code to
under 5K. Due to the improved I-cache utilization, improves ARM scaling
on 4 cores by 15%.
This commit is contained in:
Patrick Walton 2015-06-12 14:03:30 -07:00
parent c022262826
commit 5d8b213201
2 changed files with 205 additions and 111 deletions

View file

@ -22,8 +22,10 @@ fn main() {
.env("PYTHONPATH", &mako)
.env("TEMPLATE", &template)
.arg("-c")
.arg("from os import environ; from mako.template import Template;\
print(Template(filename=environ['TEMPLATE']).render())")
.arg("from os import environ; from mako.template import Template; \
from mako import exceptions; \n\
try:\n print(Template(filename=environ['TEMPLATE']).render());\n\
except:\n print exceptions.html_error_template().render()")
.stderr(Stdio::inherit())
.output()
.unwrap();