fabpot/Twig — pull request #1077 by Seldaek (2013-05-06 13:11:42+00:00)
Title: Some more optimizations

Please look at commits one by one. Overall this makes the twig_escape_filter almost 20% faster here for happy path (escaping string for html with UTF-8) on 1000 calls. Still pretty darn slow, but faster.