mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-10-05 08:27:22 +03:00
a3e2c474f0
This forces to use a copy when changes are needed. Internal mutable structures have also been changed into immutable ones (i.e. lists have been turned into tuples). This change is a really useful first step to greatly optimize memory and time needed to render large documents, as allows us to cache style dicts more safely. It's been already done in StyleDict.inherit_from, with a ~5-10% memory benefice. |
||
---|---|---|
.. | ||
css | ||
formatting_structure | ||
layout | ||
tests | ||
__init__.py | ||
__main__.py | ||
compat.py | ||
document.py | ||
draw.py | ||
fonts.py | ||
html.py | ||
images.py | ||
logger.py | ||
navigator.py | ||
pdf.py | ||
stacking.py | ||
text.py | ||
urls.py |