malgorithms / toffee

a NodeJS and browser templating language based on coffeescript, with the slickest syntax ever
MIT License
174 stars 10 forks source link

caching the path.normalize path.resolve stuff #19

Closed ellisonch closed 11 years ago

ellisonch commented 11 years ago

The speed of including a template is nontrivial. This is my first attempt at reducing that time. It just caches some path and filename stuff. Testing on large pages (with a huge number of sub-partials) on our website shows this speeding things up around 15%.

malgorithms commented 11 years ago

btw, @ellisonch I bumped the npm version.