csso
csso copied to clipboard
`{ restructuring: true }` performs worse in both speed and size (after compression) benchmarks
Ran some benchmarks against different minifiers and discovered that the restructuring can actually perform worse after compression, and even if it sometimes is better - it runs much slower.
Source: https://gist.github.com/tbjgolden/03e4f4a15c25ed10b6bf76122c352224
Two main points:
- Perhaps it might be worth considering changing the default to false?
- Perhaps the focus should be redirected towards actual compression speed vs compression ratio as there is more room for improvement there
some added context: general purpose compression is used on 85% of websites according to: https://w3techs.com/technologies/details/ce-compression