Neal Becker <ndbecker2@xxxxxxxxx> writes: > I'm guessing LTO is not helpful to dynamically loaded modules for e.g., python. It could be helpful. LTO has some additional optimization power when you pass the -fwhole-program option, which you could not do when building a dynamically loaded module. However, even without -fwhole-program LTO can still do cross-file inlining and other such optimizations. Ian