<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Lto on Ubuntu Tips</title><link>https://ubuntips.com/tags/lto/</link><description>Recent content in Lto on Ubuntu Tips</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Mon, 23 Nov 2026 19:44:11 +0800</lastBuildDate><atom:link href="https://ubuntips.com/tags/lto/index.xml" rel="self" type="application/rss+xml"/><item><title>Everything on: LTO, PGO and -march=native made PHP 8.5 slower</title><link>https://ubuntips.com/posts/everything-on-lto-pgo-made-php-slower/</link><pubDate>Mon, 23 Nov 2026 19:30:00 +0800</pubDate><guid>https://ubuntips.com/posts/everything-on-lto-pgo-made-php-slower/</guid><description>&lt;p&gt;The &lt;a href="https://ubuntips.com/posts/is-a-compiled-php-faster/"&gt;last post&lt;/a&gt; compared Sury, Ubuntu&amp;rsquo;s archive, and a source build with &lt;code&gt;-O3 -march=native&lt;/code&gt;, and found nothing: the tracing JIT generates the hot code at run time, so the C compiler barely matters. The obvious follow-up question is fair: &lt;strong&gt;what if you turn on everything?&lt;/strong&gt; LTO, profile-guided optimisation, function alignment, the interposition and PLT switches, and every module compiled from source against the new tree.&lt;/p&gt;&#10;&lt;p&gt;So I did that. The short version: &lt;strong&gt;the more I enabled, the slower it got.&lt;/strong&gt; LTO alone was neutral. PGO, alone or with LTO, cost 5–10 % on the application tiers and 18–25 % on a CPU-only probe.&lt;/p&gt;</description></item></channel></rss>