1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 08:27:22 +03:00
WeasyPrint/weasyprint
Guillaume Ayoub a3e2c474f0 Transform StyleDict into a kind of frozen dict
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.
2017-07-28 13:35:06 +02:00
..
css Transform StyleDict into a kind of frozen dict 2017-07-28 13:35:06 +02:00
formatting_structure Transform StyleDict into a kind of frozen dict 2017-07-28 13:35:06 +02:00
layout Transform StyleDict into a kind of frozen dict 2017-07-28 13:35:06 +02:00
tests Transform StyleDict into a kind of frozen dict 2017-07-28 13:35:06 +02:00
__init__.py Clean and document the logging levels 2017-07-25 13:59:56 +02:00
__main__.py Add a verbose option 2017-07-25 14:00:35 +02:00
compat.py Use isort in tests 2017-03-25 00:33:36 +01:00
document.py Clean and document the logging levels 2017-07-25 13:59:56 +02:00
draw.py Use isort in tests 2017-03-25 00:33:36 +01:00
fonts.py Clean and document the logging levels 2017-07-25 13:59:56 +02:00
html.py Clean and document the logging levels 2017-07-25 13:59:56 +02:00
images.py Clean and document the logging levels 2017-07-25 13:59:56 +02:00
logger.py Clean and document the logging levels 2017-07-25 13:59:56 +02:00
navigator.py Don't use werkzeug anymore in Navigator 2017-03-25 23:31:42 +01:00
pdf.py Clean and document the logging levels 2017-07-25 13:59:56 +02:00
stacking.py Use isort in tests 2017-03-25 00:33:36 +01:00
text.py Transform StyleDict into a kind of frozen dict 2017-07-28 13:35:06 +02:00
urls.py Clean and document the logging levels 2017-07-25 13:59:56 +02:00