googlefonts / fontmake

Compile fonts from sources (UFO, Glyphs) to binary (OpenType, TrueType).
Apache License 2.0
774 stars 93 forks source link

Add -O optimization level and disable IUP optimization by default #759

Open behdad opened 3 years ago

behdad commented 3 years ago

We should add a -Olevel optimization ala C/C++ compilers. Default should be -O2, and under which IUP optimization disabled.

behdad commented 3 years ago

Based on my measurements IUP optimization saves ~1% in file size but adds significant (20%+ total time) to the build.

behdad commented 3 years ago

I'm optimizing the IUP mechanism here: https://github.com/fonttools/fonttools/issues/2264

madig commented 3 years ago

Are Adobe apps still stumbling over IUP optimizations? 🤔