tijsverkoyen / CssToInlineStyles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very usefull when you're sending emails.
BSD 3-Clause "New" or "Revised" License
5.8k stars 187 forks source link

Refactor the storage of the computed properties #153

Closed stof closed 8 years ago

stof commented 8 years ago

Storing the element CSS properties in memory during the processing is faster than serializing them to store them in the DOM and then unserializing them back again each time.

When using it for the example, I get a nice performance improvement. Applying this patch on top of #152 gives me an additional 6% win.

stof commented 8 years ago

I fixed the phpdoc. This is now ready

stof commented 8 years ago

@tijsverkoyen anything blocking this ?