You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #177694 we disabled LTO for linux builds because of infra cost. Instead of removing LTO we should switch to ThinLTO which should give us 80% of full lto at a fraction of the cost.
Activity
gaaclarke commentedon Nov 10, 2026
Skia is reporting real differences in text performance with LTO versus none, like 10% faster benchmarks.
gaaclarke commentedon Nov 10, 2026
I implemented this locally and compared the build times and build sizes:
--no-lto--thin-ltolibflutter_linux_gtk.sosizeSo it increased size, we'd have to see some benefit of benchmarks.
gaaclarke commentedon Nov 10, 2026
I ran txt_benchmarks with and without lto and on average it's 13% faster.
SkParagraphFixture/ShortLayoutSkParagraphFixture/LongLayoutSkParagraphFixture/JustifyLayoutSkParagraphFixture/ManyStylesLayoutSkParagraphFixture/TextBigO/64SkParagraphFixture/TextBigO/256SkParagraphFixture/TextBigO/1024SkParagraphFixture/TextBigO/4096SkParagraphFixture/TextBigO/16384SkParagraphFixture/StylesBigO/8SkParagraphFixture/StylesBigO/16SkParagraphFixture/StylesBigO/64SkParagraphFixture/StylesBigO/256SkParagraphFixture/StylesBigO/1024SkParagraphFixture/StylesBigO/4096SkParagraphFixture/PaintSimpleSkParagraphFixture/PaintLargeSkParagraphFixture/PaintDecorationSkParagraphFixture/SimpleBuildergaaclarke commentedon Nov 11, 2026
Rusino has good suggestions on tweaking thinlto: #196314 (comment)
Moves linux to ThinLTO. (flutter#196314)