<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	
	>
<channel>
	<title>
	Comments on: Do Understandable If Statements Run Slower?	</title>
	<atom:link href="https://www.fluentcpp.com/2017/07/25/understandable-statements-run-slower/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.fluentcpp.com/2017/07/25/understandable-statements-run-slower/</link>
	<description>Jonathan Boccara&#039;s blog</description>
	<lastBuildDate>Wed, 26 Jul 2017 03:25:00 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.3</generator>
	<item>
		<title>
		By: Daniel Houck		</title>
		<link>https://www.fluentcpp.com/2017/07/25/understandable-statements-run-slower/#comment-445</link>

		<dc:creator><![CDATA[Daniel Houck]]></dc:creator>
		<pubDate>Wed, 26 Jul 2017 03:25:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=1680#comment-445</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.fluentcpp.com/2017/07/25/understandable-statements-run-slower/#comment-443&quot;&gt;Jonathan Boccara&lt;/a&gt;.

I check whether the caller’s assembly code has a call instruction to the callee. Or, in this case where I know what I &lt;i&gt;want&lt;/i&gt; the answer to be, I use the always_inline GCC attribute.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.fluentcpp.com/2017/07/25/understandable-statements-run-slower/#comment-443">Jonathan Boccara</a>.</p>
<p>I check whether the caller’s assembly code has a call instruction to the callee. Or, in this case where I know what I <i>want</i> the answer to be, I use the always_inline GCC attribute.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jonathan Boccara		</title>
		<link>https://www.fluentcpp.com/2017/07/25/understandable-statements-run-slower/#comment-444</link>

		<dc:creator><![CDATA[Jonathan Boccara]]></dc:creator>
		<pubDate>Tue, 25 Jul 2017 21:41:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=1680#comment-444</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.fluentcpp.com/2017/07/25/understandable-statements-run-slower/#comment-441&quot;&gt;Daniel Houck&lt;/a&gt;.

Agreed, thanks for these additions Daniel.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.fluentcpp.com/2017/07/25/understandable-statements-run-slower/#comment-441">Daniel Houck</a>.</p>
<p>Agreed, thanks for these additions Daniel.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jonathan Boccara		</title>
		<link>https://www.fluentcpp.com/2017/07/25/understandable-statements-run-slower/#comment-443</link>

		<dc:creator><![CDATA[Jonathan Boccara]]></dc:creator>
		<pubDate>Tue, 25 Jul 2017 21:40:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=1680#comment-443</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.fluentcpp.com/2017/07/25/understandable-statements-run-slower/#comment-435&quot;&gt;Bartlomiej Filipek&lt;/a&gt;.

Right. Hadn&#039;t planned it, but that could be an interesting measure. However, as you&#039;re pointing out, inlining would play a big role. Actually, I&#039;m not sure how to check whether a function has been inline in a simple way (nor in a complicated one), do you have an idea how we do this?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.fluentcpp.com/2017/07/25/understandable-statements-run-slower/#comment-435">Bartlomiej Filipek</a>.</p>
<p>Right. Hadn&#8217;t planned it, but that could be an interesting measure. However, as you&#8217;re pointing out, inlining would play a big role. Actually, I&#8217;m not sure how to check whether a function has been inline in a simple way (nor in a complicated one), do you have an idea how we do this?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Daniel Houck		</title>
		<link>https://www.fluentcpp.com/2017/07/25/understandable-statements-run-slower/#comment-441</link>

		<dc:creator><![CDATA[Daniel Houck]]></dc:creator>
		<pubDate>Tue, 25 Jul 2017 15:33:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=1680#comment-441</guid>

					<description><![CDATA[Other notes about optimization:

* If you care about performance that much, you really should be using at least -O1. Then it doesn’t matter, at least for this simple test case.
* If all else fails and you need to make the code less readable, you can always use comments if the less readable code is particularly bad.]]></description>
			<content:encoded><![CDATA[<p>Other notes about optimization:</p>
<p>* If you care about performance that much, you really should be using at least -O1. Then it doesn’t matter, at least for this simple test case.<br />
* If all else fails and you need to make the code less readable, you can always use comments if the less readable code is particularly bad.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Vladislav Kaplan		</title>
		<link>https://www.fluentcpp.com/2017/07/25/understandable-statements-run-slower/#comment-437</link>

		<dc:creator><![CDATA[Vladislav Kaplan]]></dc:creator>
		<pubDate>Tue, 25 Jul 2017 09:04:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=1680#comment-437</guid>

					<description><![CDATA[Thank you]]></description>
			<content:encoded><![CDATA[<p>Thank you</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Bartlomiej Filipek		</title>
		<link>https://www.fluentcpp.com/2017/07/25/understandable-statements-run-slower/#comment-435</link>

		<dc:creator><![CDATA[Bartlomiej Filipek]]></dc:creator>
		<pubDate>Tue, 25 Jul 2017 06:20:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=1680#comment-435</guid>

					<description><![CDATA[interesting :)

Personally, I wouldn&#039;t care about perf of such 
simple expressions for the most code. As you mentioned it&#039;s important in
 hot spots and critical code in the system.

Do you plan to 
measure if (statements...) vs if (functionCall()) ? But if the 
functionCall is simple that should be inlined by the compiler and the 
perf should be the same... just loud thinking :)]]></description>
			<content:encoded><![CDATA[<p>interesting 🙂</p>
<p>Personally, I wouldn&#8217;t care about perf of such<br />
simple expressions for the most code. As you mentioned it&#8217;s important in<br />
 hot spots and critical code in the system.</p>
<p>Do you plan to<br />
measure if (statements&#8230;) vs if (functionCall()) ? But if the<br />
functionCall is simple that should be inlined by the compiler and the<br />
perf should be the same&#8230; just loud thinking 🙂</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
