example of Laz 1.8.1+ overrides to build a Retailed App
you have to compile 2 times your project
- 1st pass, use preRetail configuration with no -Xs flag checked so the compiler will collect all symbols and drop them with other stuffs in the feedback file
- 2nd and final pass, use Retail conf with -O3 and -Xs then the compiler will build a FINAL App so damn optimized, removing unused syms, changing virtual calls to static ones when possible, and shortening "V"irtual "M"ethods "T"able achording to this
Actually, on a small project around 3.5MB long compiled as Release O3, I noticided a gain of 650KB, reducing the final app from 3.5 to 2.9. The App is also a lil bit FASTer. So WPO is definitely not a toy... for Advanced Programmers