<?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: LoadVars RAM Saver Trick</title>
	<atom:link href="http://jessewarden.com/2004/05/loadvars-ram-saver-trick.html/feed" rel="self" type="application/rss+xml" />
	<link>http://jessewarden.com/2004/05/loadvars-ram-saver-trick.html</link>
	<description>A blog on software development, technology, games &#038; movies.</description>
	<pubDate>Tue, 06 Jan 2009 11:28:02 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Michal</title>
		<link>http://jessewarden.com/2004/05/loadvars-ram-saver-trick.html/comment-page-1#comment-1684</link>
		<dc:creator>Michal</dc:creator>
		<pubDate>Tue, 15 Jun 2004 01:56:29 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=518#comment-1684</guid>
		<description>I came accross this issue by having to reload an XML object over and over during a loop in a 'screensaver', crashing my PC eventually.
I worked around it by setting isLoaded flag

Anyway, here's some example code of how to repro this bug

function init() {
	adXML = new XML();
	adXMLfile = "xmlfile.xml";
	loadXml();
}
function loadXml() {
	adXML.load(adXMLfile);
	adXML.onLoad = function(sucess) {
		if (sucess) {
			init();
			pass++;
			output.text = pass;
		}
	};
}
init();
</description>
		<content:encoded><![CDATA[<p>I came accross this issue by having to reload an XML object over and over during a loop in a &#8217;screensaver&#8217;, crashing my PC eventually.<br />
I worked around it by setting isLoaded flag</p>
<p>Anyway, here&#8217;s some example code of how to repro this bug</p>
<p>function init() {<br />
	adXML = new XML();<br />
	adXMLfile = &#8220;xmlfile.xml&#8221;;<br />
	loadXml();<br />
}<br />
function loadXml() {<br />
	adXML.load(adXMLfile);<br />
	adXML.onLoad = function(sucess) {<br />
		if (sucess) {<br />
			init();<br />
			pass++;<br />
			output.text = pass;<br />
		}<br />
	};<br />
}<br />
init();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kenny Bunch</title>
		<link>http://jessewarden.com/2004/05/loadvars-ram-saver-trick.html/comment-page-1#comment-1683</link>
		<dc:creator>Kenny Bunch</dc:creator>
		<pubDate>Wed, 12 May 2004 19:30:42 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=518#comment-1683</guid>
		<description>Jesse,

I possible, offload the parsing of the xml to your server. If you have it aggregating it on a cron each week, don't just mirror the xml to your server, but parse it as well. You could parse the xml into a php version of same data type that you are currently deserializing it to on the client side. You could save this data as serialized info on your server. Then when a client requests the info you could have a PHP script read in the data and send it to the client via Flash remoting. You would take one hit each week for the processing, and a lot less intensive hit each time someone made a request. You aren't serving flat xml files anymore, but from the clientside you don't have the same issues.</description>
		<content:encoded><![CDATA[<p>Jesse,</p>
<p>I possible, offload the parsing of the xml to your server. If you have it aggregating it on a cron each week, don&#8217;t just mirror the xml to your server, but parse it as well. You could parse the xml into a php version of same data type that you are currently deserializing it to on the client side. You could save this data as serialized info on your server. Then when a client requests the info you could have a PHP script read in the data and send it to the client via Flash remoting. You would take one hit each week for the processing, and a lot less intensive hit each time someone made a request. You aren&#8217;t serving flat xml files anymore, but from the clientside you don&#8217;t have the same issues.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JesterXL</title>
		<link>http://jessewarden.com/2004/05/loadvars-ram-saver-trick.html/comment-page-1#comment-1682</link>
		<dc:creator>JesterXL</dc:creator>
		<pubDate>Wed, 12 May 2004 18:08:22 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=518#comment-1682</guid>
		<description>As far as monitoring the RAM usage, I just look at Task Manager.  I've heard the "requested memory" excuse from one of the chattyfig lists, but I don't buy that for a minute.</description>
		<content:encoded><![CDATA[<p>As far as monitoring the RAM usage, I just look at Task Manager.  I&#8217;ve heard the &#8220;requested memory&#8221; excuse from one of the chattyfig lists, but I don&#8217;t buy that for a minute.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JesterXL</title>
		<link>http://jessewarden.com/2004/05/loadvars-ram-saver-trick.html/comment-page-1#comment-1681</link>
		<dc:creator>JesterXL</dc:creator>
		<pubDate>Wed, 12 May 2004 18:07:51 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=518#comment-1681</guid>
		<description>External datasource, as usual, is out of my control.

http://www.swgcraft.com/resourceexport.php

26 different 300k files vs. one 7meg one

Each XML file is loaded individually, parsed into a tiny object, and the process continues until all 26 are done.

I could off-load to the server, but then... it's already abstracted to simple XML that I can easily parse and then save locally to a local shared object.  I only need to do this once a week for the user.</description>
		<content:encoded><![CDATA[<p>External datasource, as usual, is out of my control.</p>
<p><a href="http://www.swgcraft.com/resourceexport.php" rel="nofollow">http://www.swgcraft.com/resourceexport.php</a></p>
<p>26 different 300k files vs. one 7meg one</p>
<p>Each XML file is loaded individually, parsed into a tiny object, and the process continues until all 26 are done.</p>
<p>I could off-load to the server, but then&#8230; it&#8217;s already abstracted to simple XML that I can easily parse and then save locally to a local shared object.  I only need to do this once a week for the user.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: erikbianchi</title>
		<link>http://jessewarden.com/2004/05/loadvars-ram-saver-trick.html/comment-page-1#comment-1680</link>
		<dc:creator>erikbianchi</dc:creator>
		<pubDate>Wed, 12 May 2004 18:02:53 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=518#comment-1680</guid>
		<description>Wow 9 300k xml files! I'd suggest finding a way to optimize your data.

Do you have 9 different views or is each XML file parsed and then compiled into a single data source? If so you may want to consider offloading the parsing to the server.

What are you using to monitor your mem usage? Perfmon?</description>
		<content:encoded><![CDATA[<p>Wow 9 300k xml files! I&#8217;d suggest finding a way to optimize your data.</p>
<p>Do you have 9 different views or is each XML file parsed and then compiled into a single data source? If so you may want to consider offloading the parsing to the server.</p>
<p>What are you using to monitor your mem usage? Perfmon?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
