Jean-Marc Lasgouttes <lasgout...@lyx.org> writes: | Le 24/10/12 22:18, Lars Gullik Bjønnes a écrit : >> Jean-Marc Lasgouttes <lasgout...@lyx.org> writes: >> >> | Le 24/10/2012 13:13, Lars Gullik Bjønnes a écrit : >>>> Add feature --enable-lto, link-time optimization. >>> >> | Do you see a visible gain, that would make it worth using on release >> builds? >> >> text data bss dec hex filename >> 8042443 28616 39624 8110683 7bc25b src/lyx-flto >> 8912062 31888 40760 8984710 891886 src/lyx >> >> (or there about). If that is enough gain to be worth it? Dunno. >> >> It if faster is not that easy to measure. > | And is the link significantly more painful (time/memory)?
Oh, yes to both. All optimization is redone, although wiht -flto=6 will will run the optmization/assembly 6-way paralell so it is not that bad on a multicore machine. Also you can compile with "-flto -O0" and link with "-flto -O2". So you might get a huge speed bonus on the compiling and only way when linking/optimizing. As a side note: text data bss dec hex filename 8817187 31904 40760 8889851 87a5fb src/lyx-cxx11 (Most likely due to rvalue-references and move semantics.) -- Lgb