<?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/"
		>
<channel>
	<title>Comments on: Global variables: to use or not to use?</title>
	<atom:link href="http://www.jeffhung.net/blog/articles/jeffhung/129/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jeffhung.net/blog/articles/jeffhung/129/</link>
	<description>(My smile insists of having nose. :-)</description>
	<lastBuildDate>Thu, 03 Nov 2011 00:43:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2-alpha</generator>
	<item>
		<title>By: Patrick</title>
		<link>http://www.jeffhung.net/blog/articles/jeffhung/129/comment-page-1/#comment-41</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Fri, 10 Jun 2005 16:54:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffhung.idv.tw/blog/articles/jeffhung/129/#comment-41</guid>
		<description>我的觀點向來是 global variables 能少用就少用，因為它帶來的問題向來比他的效益還要多。前面的測試程式如果改成:int main()
{
    int* local_var = struct_var-&gt;v;
#define ACCESS_VAR local_var
    ...
}程式的效能就跟使用 global variables 相差不多囉。就我的經驗，大部分程式的效率往往取決於設計與演算法，最後只要花點時間優化所謂的熱點 (hot spots)，想要有接近 global variables 的效率而無其缺點並非不能達到。</description>
		<content:encoded><![CDATA[<p>我的觀點向來是 global variables 能少用就少用，因為它帶來的問題向來比他的效益還要多。前面的測試程式如果改成:int main()<br />
{<br />
    int* local_var = struct_var-&gt;v;<br />
#define ACCESS_VAR local_var<br />
    ...<br />
}程式的效能就跟使用 global variables 相差不多囉。就我的經驗，大部分程式的效率往往取決於設計與演算法，最後只要花點時間優化所謂的熱點 (hot spots)，想要有接近 global variables 的效率而無其缺點並非不能達到。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ijliao</title>
		<link>http://www.jeffhung.net/blog/articles/jeffhung/129/comment-page-1/#comment-28</link>
		<dc:creator>ijliao</dc:creator>
		<pubDate>Thu, 09 Jun 2005 02:32:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffhung.idv.tw/blog/articles/jeffhung/129/#comment-28</guid>
		<description>通常我用全域變數不是因為速度效率什麼的
而是因為我不想傳參數 XD

</description>
		<content:encoded><![CDATA[<p>通常我用全域變數不是因為速度效率什麼的<br />
而是因為我不想傳參數 XD</p>
]]></content:encoded>
	</item>
</channel>
</rss>

