<?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: 記憶體配置：Pooled Allocation技術評比與效能測試</title>
	<atom:link href="http://blog.monkeypotion.net/gameprog/advanced/profiling-in-pooled-allocation-techniques/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.monkeypotion.net/gameprog/advanced/profiling-in-pooled-allocation-techniques</link>
	<description>遊戲開發‧遊戲程式‧遊戲設計</description>
	<lastBuildDate>Tue, 07 Sep 2010 11:33:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: 半路</title>
		<link>http://blog.monkeypotion.net/gameprog/advanced/profiling-in-pooled-allocation-techniques/comment-page-1#comment-3910</link>
		<dc:creator>半路</dc:creator>
		<pubDate>Tue, 16 Mar 2010 15:26:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.monkeypotion.net/?p=842#comment-3910</guid>
		<description>@JK:
你提供的連結只是那篇文章中的程式碼而已，原文對於 Boost.Pool 有進一步的深入介紹。我想八成是該雜誌將 PDF 檔移除了…… Orz</description>
		<content:encoded><![CDATA[<p>@JK:<br />
你提供的連結只是那篇文章中的程式碼而已，原文對於 Boost.Pool 有進一步的深入介紹。我想八成是該雜誌將 PDF 檔移除了…… Orz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JK</title>
		<link>http://blog.monkeypotion.net/gameprog/advanced/profiling-in-pooled-allocation-techniques/comment-page-1#comment-3864</link>
		<dc:creator>JK</dc:creator>
		<pubDate>Wed, 10 Mar 2010 03:30:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.monkeypotion.net/?p=842#comment-3864</guid>
		<description>附帶一下

&quot;侯捷先生所寫的「Boost技術與應用系列文章（2）Boost.Pool」（PDF 檔）&quot; 
這個路徑我找不到了, 我找到下面這個路徑, 不知道跟原po的是不是一樣

http://www.runpc.com.tw/download/200705/R160P181.txt</description>
		<content:encoded><![CDATA[<p>附帶一下</p>
<p>&#8220;侯捷先生所寫的「Boost技術與應用系列文章（2）Boost.Pool」（PDF 檔）&#8221;<br />
這個路徑我找不到了, 我找到下面這個路徑, 不知道跟原po的是不是一樣</p>
<p><a href="http://www.runpc.com.tw/download/200705/R160P181.txt" rel="nofollow">http://www.runpc.com.tw/download/200705/R160P181.txt</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 半路</title>
		<link>http://blog.monkeypotion.net/gameprog/advanced/profiling-in-pooled-allocation-techniques/comment-page-1#comment-3391</link>
		<dc:creator>半路</dc:creator>
		<pubDate>Sun, 27 Dec 2009 16:12:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.monkeypotion.net/?p=842#comment-3391</guid>
		<description>@Isaac:
你好，

關於 Free list 的設計議題，建議可以去找《Modern C++ Design》這本書看看，其中有一整個章節著重在以 policy-based design 為基礎的 Free list 設計實做主題上。

至於 STL，我自己是沒有用過 STLport 函式庫，但我想它的 FAQ 所述應該沒錯。而標準版的 STL，確實在記憶體釋放上有一些很特殊的「眉角」存在。</description>
		<content:encoded><![CDATA[<p>@Isaac:<br />
你好，</p>
<p>關於 Free list 的設計議題，建議可以去找《Modern C++ Design》這本書看看，其中有一整個章節著重在以 policy-based design 為基礎的 Free list 設計實做主題上。</p>
<p>至於 STL，我自己是沒有用過 STLport 函式庫，但我想它的 FAQ 所述應該沒錯。而標準版的 STL，確實在記憶體釋放上有一些很特殊的「眉角」存在。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Isaac</title>
		<link>http://blog.monkeypotion.net/gameprog/advanced/profiling-in-pooled-allocation-techniques/comment-page-1#comment-3378</link>
		<dc:creator>Isaac</dc:creator>
		<pubDate>Wed, 23 Dec 2009 16:38:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.monkeypotion.net/?p=842#comment-3378</guid>
		<description>最近我也在研究這個議題，不過我是從侯捷的STL源碼剖析下手的，不過奇怪的是有提到free list的配置，卻未提到如何釋放free list所佔用的空間。在網路上找到的相關資料有http://www.mscto.com/vc/2009022675140_4.html和http://stlport.sourceforge.net/FAQ.shtml#leaks。不曉得SGI STL是否真有把記憶體釋放交給OS的毛病？不曉得STLport是否真有修正此問題？</description>
		<content:encoded><![CDATA[<p>最近我也在研究這個議題，不過我是從侯捷的STL源碼剖析下手的，不過奇怪的是有提到free list的配置，卻未提到如何釋放free list所佔用的空間。在網路上找到的相關資料有http://www.mscto.com/vc/2009022675140_4.html和http://stlport.sourceforge.net/FAQ.shtml#leaks。不曉得SGI STL是否真有把記憶體釋放交給OS的毛病？不曉得STLport是否真有修正此問題？</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 半路</title>
		<link>http://blog.monkeypotion.net/gameprog/advanced/profiling-in-pooled-allocation-techniques/comment-page-1#comment-1694</link>
		<dc:creator>半路</dc:creator>
		<pubDate>Wed, 18 Feb 2009 13:37:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.monkeypotion.net/?p=842#comment-1694</guid>
		<description>@larz:
可是如果關掉 html 標籤，我就沒辦法在迴響中放超連結或者其他的東西了。所以我想還是用上面的密技來輸入大於和小於符號吧！或者是用全形的＜和＞代替也可以喔～ XD

謝謝你的迴響。 ^^</description>
		<content:encoded><![CDATA[<p>@larz:<br />
可是如果關掉 html 標籤，我就沒辦法在迴響中放超連結或者其他的東西了。所以我想還是用上面的密技來輸入大於和小於符號吧！或者是用全形的＜和＞代替也可以喔～ XD</p>
<p>謝謝你的迴響。 ^^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: larz</title>
		<link>http://blog.monkeypotion.net/gameprog/advanced/profiling-in-pooled-allocation-techniques/comment-page-1#comment-1671</link>
		<dc:creator>larz</dc:creator>
		<pubDate>Tue, 17 Feb 2009 14:29:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.monkeypotion.net/?p=842#comment-1671</guid>
		<description>以前幫實驗室架blog，用過一陣子的wordpress，我想應該有選項可以關閉對留言內容的html支援，將其視為純文字處理</description>
		<content:encoded><![CDATA[<p>以前幫實驗室架blog，用過一陣子的wordpress，我想應該有選項可以關閉對留言內容的html支援，將其視為純文字處理</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 半路</title>
		<link>http://blog.monkeypotion.net/gameprog/advanced/profiling-in-pooled-allocation-techniques/comment-page-1#comment-1318</link>
		<dc:creator>半路</dc:creator>
		<pubDate>Sat, 10 Jan 2009 16:43:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.monkeypotion.net/?p=842#comment-1318</guid>
		<description>@how:
對厚！我想起來了，原來還有這招。 Orz

測試一下：
&lt; &lt; &lt; &lt; &gt; &gt; &gt; &gt;  XD

謝謝你喔。 ^^</description>
		<content:encoded><![CDATA[<p>@how:<br />
對厚！我想起來了，原來還有這招。 Orz</p>
<p>測試一下：<br />
&lt; &lt; &lt; &lt; &gt; &gt; &gt; &gt;  XD</p>
<p>謝謝你喔。 ^^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: how</title>
		<link>http://blog.monkeypotion.net/gameprog/advanced/profiling-in-pooled-allocation-techniques/comment-page-1#comment-1303</link>
		<dc:creator>how</dc:creator>
		<pubDate>Fri, 09 Jan 2009 02:49:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.monkeypotion.net/?p=842#comment-1303</guid>
		<description>半形的大於小於會被當成html標籤.. 

只要用&amp; lt; (要連起來 -&gt; &lt;)跟 &amp; gt; (一樣要連起來 -&gt; &gt;)

就可以打出小於跟大於囉~~</description>
		<content:encoded><![CDATA[<p>半形的大於小於會被當成html標籤.. </p>
<p>只要用&amp; lt; (要連起來 -&gt; &lt;)跟 &amp; gt; (一樣要連起來 -&gt; &gt;)</p>
<p>就可以打出小於跟大於囉~~</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 半路</title>
		<link>http://blog.monkeypotion.net/gameprog/advanced/profiling-in-pooled-allocation-techniques/comment-page-1#comment-1271</link>
		<dc:creator>半路</dc:creator>
		<pubDate>Mon, 05 Jan 2009 14:15:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.monkeypotion.net/?p=842#comment-1271</guid>
		<description>@LMJ:
HPHA 的實作細節我沒有深入研究太多，但我認為你上述這樣的作法不太正確。而且配置一整個陣列物件的方式，與 Pooled Allocation 機制的原始用意有所抵觸。如果你需要使用陣列方式配置記憶體的話，或許可以考慮包裝成一個 struct 來使用，例如：

struct CharArray
{
    CharArray() {}
    char data[12];
};

CharArray* object = custom_new＜CharArray＞();

P.S. 半形的角括號，會被辨識成 HTML 標籤，目前還不知道如何解決。 Orz</description>
		<content:encoded><![CDATA[<p>@LMJ:<br />
HPHA 的實作細節我沒有深入研究太多，但我認為你上述這樣的作法不太正確。而且配置一整個陣列物件的方式，與 Pooled Allocation 機制的原始用意有所抵觸。如果你需要使用陣列方式配置記憶體的話，或許可以考慮包裝成一個 struct 來使用，例如：</p>
<p>struct CharArray<br />
{<br />
    CharArray() {}<br />
    char data[12];<br />
};</p>
<p>CharArray* object = custom_new＜CharArray＞();</p>
<p>P.S. 半形的角括號，會被辨識成 HTML 標籤，目前還不知道如何解決。 Orz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LMJ</title>
		<link>http://blog.monkeypotion.net/gameprog/advanced/profiling-in-pooled-allocation-techniques/comment-page-1#comment-1263</link>
		<dc:creator>LMJ</dc:creator>
		<pubDate>Mon, 05 Jan 2009 10:15:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.monkeypotion.net/?p=842#comment-1263</guid>
		<description>我發現＜＞角括號內容都消失了，所以重新發一次，請測試的時候把全型改成半型

template＜class T＞
inline T* custom_new_array(size_t count) {
	void* p = gAllocator.alloc( sizeof(T) * count );
	return new (p, custom_tag()) T[count];
}


template＜class T＞
inline void custom_delete_array(T* ptr , size_t count) 
{
	T* head = ptr;

	for( size_t i=0 ; i~T();		
		}
		ptr += i * sizeof(T);
	}

	//gAllocator.free(head);
	gAllocator.free(head, sizeof(T) * count  );
}
＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝

char* ptr = custom_new_array＜char＞(12);
custom_delete_array＜char＞(ptr,12);</description>
		<content:encoded><![CDATA[<p>我發現＜＞角括號內容都消失了，所以重新發一次，請測試的時候把全型改成半型</p>
<p>template＜class T＞<br />
inline T* custom_new_array(size_t count) {<br />
	void* p = gAllocator.alloc( sizeof(T) * count );<br />
	return new (p, custom_tag()) T[count];<br />
}</p>
<p>template＜class T＞<br />
inline void custom_delete_array(T* ptr , size_t count)<br />
{<br />
	T* head = ptr;</p>
<p>	for( size_t i=0 ; i~T();<br />
		}<br />
		ptr += i * sizeof(T);<br />
	}</p>
<p>	//gAllocator.free(head);<br />
	gAllocator.free(head, sizeof(T) * count  );<br />
}<br />
＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝</p>
<p>char* ptr = custom_new_array＜char＞(12);<br />
custom_delete_array＜char＞(ptr,12);</p>
]]></content:encoded>
	</item>
</channel>
</rss>
