<?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: The secret behind memory allocation in Python</title>
	<atom:link href="http://www.larsen-b.com/Article/179.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.larsen-b.com/Article/179.html</link>
	<description>Titanium Exposé</description>
	<lastBuildDate>Mon, 02 Jul 2018 13:54:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
	<item>
		<title>By: llimllib</title>
		<link>http://www.larsen-b.com/Article/179.html/comment-page-1#comment-514</link>
		<dc:creator>llimllib</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-514</guid>
		<description><![CDATA[Thanks for that link... I hope they post it on daily python-url, because that is somethinig I&#039;ve run into as well. I almost feel inspired enough to start digging around the memory allocation code myself.&lt;br /&gt;
&lt;br /&gt;
Almost.]]></description>
		<content:encoded><![CDATA[<p>Thanks for that link&#8230; I hope they post it on daily python-url, because that is somethinig I&#8217;ve run into as well. I almost feel inspired enough to start digging around the memory allocation code myself.</p>
<p>Almost.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damian Cugley</title>
		<link>http://www.larsen-b.com/Article/179.html/comment-page-1#comment-515</link>
		<dc:creator>Damian Cugley</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-515</guid>
		<description><![CDATA[&lt;p&gt;Returning freed memory to the operating system is rarer than you might think.  I am fairly sure that many (most?) malloc/free implementations make no attempt to use sbrk to return memory to the system.&lt;/p&gt;
&lt;p&gt;I can see that it &lt;em&gt;might&lt;/em&gt; be doable: you would have to pause the interpreter, move all live data in to one end of the memory map, then release the unused end to the OS.  Depending on details of how the garbage collector works, this could get tricky: if the interpreter has code that uses the pointer values of objects in any way (e.g., to generate hashes for dictionaries), then moving the objects would break this code.  Extensions that associate data with Python objects could also be broken when they are moved.&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p>Returning freed memory to the operating system is rarer than you might think.  I am fairly sure that many (most?) malloc/free implementations make no attempt to use sbrk to return memory to the system.</p>
<p>I can see that it <em>might</em> be doable: you would have to pause the interpreter, move all live data in to one end of the memory map, then release the unused end to the OS.  Depending on details of how the garbage collector works, this could get tricky: if the interpreter has code that uses the pointer values of objects in any way (e.g., to generate hashes for dictionaries), then moving the objects would break this code.  Extensions that associate data with Python objects could also be broken when they are moved.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jkx</title>
		<link>http://www.larsen-b.com/Article/179.html/comment-page-1#comment-516</link>
		<dc:creator>Jkx</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-516</guid>
		<description><![CDATA[&lt;p&gt;First, I really think, this should be clear in the doc. Because a lot of us spend a lot time on this. because, when you understand what happend, you can try to avoid this issue. (I mean write your code differently to avoid this)&lt;/p&gt;
&lt;p&gt;I read the thread on the mailing list, last week-end. This is really interesting. Tim seems to say, this is doable, but some code will break some wrong written external module.&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p>First, I really think, this should be clear in the doc. Because a lot of us spend a lot time on this. because, when you understand what happend, you can try to avoid this issue. (I mean write your code differently to avoid this)</p>
<p>I read the thread on the mailing list, last week-end. This is really interesting. Tim seems to say, this is doable, but some code will break some wrong written external module.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
