<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Clang on Ubuntu Tips</title><link>https://ubuntips.com/tags/clang/</link><description>Recent content in Clang on Ubuntu Tips</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Mon, 23 Nov 2026 22:26:42 +0800</lastBuildDate><atom:link href="https://ubuntips.com/tags/clang/index.xml" rel="self" type="application/rss+xml"/><item><title>clang, PHP 8.4 and the missing zlib: the last round of compiled PHP</title><link>https://ubuntips.com/posts/clang-php-84-and-the-missing-zlib/</link><pubDate>Mon, 23 Nov 2026 22:20:00 +0800</pubDate><guid>https://ubuntips.com/posts/clang-php-84-and-the-missing-zlib/</guid><description>&lt;p&gt;The last two posts asked whether a compiled PHP beats the distribution package. &lt;a href="https://ubuntips.com/posts/is-a-compiled-php-faster/"&gt;First&lt;/a&gt; with &lt;code&gt;-O3 -march=native&lt;/code&gt;, &lt;a href="https://ubuntips.com/posts/everything-on-lto-pgo-made-php-slower/"&gt;then&lt;/a&gt; with LTO and PGO switched on. The answer both times was no. A few CentminMod levers were still unmeasured, so this round covers them: function alignment on its own, &lt;strong&gt;clang instead of GCC&lt;/strong&gt;, and &lt;strong&gt;PHP 8.4 against 8.5&lt;/strong&gt;. Every module is compiled from source this time, igbinary included.&lt;/p&gt;&#10;&lt;p&gt;Short version: &lt;strong&gt;clang is the only build that ever beat the package, by about 3 % on XenForo member pages and nothing elsewhere. PHP 8.4 is slower than 8.5. My earlier source builds were missing zlib.&lt;/strong&gt; The zlib gap biased the earlier comparisons in favour of the source builds, so their conclusions still stand, but you should know about it.&lt;/p&gt;</description></item></channel></rss>