Smart punctuation creates lots of synthesized characters which are not in the source document. Instead of allocating 'cow space' for these characters, we can create a special itembody for them which carry the character with them directly. This results in a 20%+ speedup for documents with lots of smart punctuation. |
||
---|---|---|
.. | ||
html_rendering.rs | ||
lib.rs |