chrisglass/xhtml2pdf — pull request #49 by abravetti (2012-05-24 09:48:52+00:00)
Title: cached CSSCollect in xhtml2pdf/parser.py for performance improvement

We do not need to call getCSSAttr if we already done it for an element with the same parent and same attributes so we can use a cache to store and reuse the result. This patch provide huge performance improvement using a cache in the CSSCollect function.