<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>/dev/null &#187; Firefox</title>
	<atom:link href="http://www.nulldevice.de/tag/firefox/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nulldevice.de</link>
	<description>Static is evil.</description>
	<lastBuildDate>Fri, 18 Nov 2011 17:28:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Object property ordering in Google Chrome</title>
		<link>http://www.nulldevice.de/2009/09/object-property-ordering-in-google-chrome/</link>
		<comments>http://www.nulldevice.de/2009/09/object-property-ordering-in-google-chrome/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 22:26:37 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Safari]]></category>

		<guid isPermaLink="false">http://www.nulldevice.de/?p=1021</guid>
		<description><![CDATA[Today, I prepared for the upcoming PHP/JS conferences and had a look at the mysterious bug #883 of Google Chrome and those related to it. Also I read though SquirrelFish source, which is used by Safari 4. The reason for the odd behavior of Chrome seems to be a if/else construct that is repeated throughout [...]]]></description>
			<content:encoded><![CDATA[<p>Today, I prepared for the upcoming PHP/JS conferences and had a look at the mysterious bug #883 of Google Chrome and those related to it. Also I read though SquirrelFish source, which is used by Safari 4.</p>
<p>The reason for the odd behavior of Chrome seems to be a if/else construct that is repeated throughout the source of runtime.cc:</p>
<p><code><br />
// Check if the name is trivially convertible to an index and get<br />
// the element if so.<br />
if (name-&gt;AsArrayIndex(&amp;index)) {<br />
  return GetElementOrCharAt(object, index);<br />
} else {<br />
  PropertyAttributes attr;<br />
  return object-&gt;GetProperty(*name, &amp;attr);<br />
}<br />
</code></p>
<p>Chrome makes a difference between properties and elements. And they do weird type casts. If you check JavaScriptCore, you see there is a better way:<br />
<code><br />
inline JSValue JSObject::get(ExecState* exec, const Identifier&amp; propertyName) const<br />
{<br />
  PropertySlot slot(this);<br />
  if (const_cast(this)-&gt;getPropertySlot(exec, propertyName, slot))<br />
    return slot.getValue(exec, propertyName);<br />
  return jsUndefined();<br />
}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nulldevice.de/2009/09/object-property-ordering-in-google-chrome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yes, there is a memory leak&#8230;</title>
		<link>http://www.nulldevice.de/2008/05/yes-there-is-a-memory-leak/</link>
		<comments>http://www.nulldevice.de/2008/05/yes-there-is-a-memory-leak/#comments</comments>
		<pubDate>Sun, 25 May 2008 04:49:10 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://www.nulldevice.de/?p=810</guid>
		<description><![CDATA[If somebody ever said, there is no memory leak in Firefox, here&#8217;s the proof: It can&#8217;t be, that a browser with 4 open tabs requires about 600 MB of memory. That&#8217;s 150 MB per Web site, which seems a bit too much Safari, by the way, requires 128 MB for 5 open tabs. If you [...]]]></description>
			<content:encoded><![CDATA[<p>If somebody ever said, there is no memory leak in Firefox, here&#8217;s the proof:</p>
<p><span style="color: #551a8b;"><img src="http://farm3.static.flickr.com/2234/2519624567_8fb99fa8a9_o.png" alt="Firefox memory leak" width="372" height="80" /></span></p>
<p>It can&#8217;t be, that a browser with 4 open tabs requires about 600 MB of memory. That&#8217;s 150 MB per Web site, which seems a bit too much <img src='http://www.nulldevice.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Safari, by the way, requires 128 MB for 5 open tabs.</p>
<blockquote><p>If you find that Firefox&#8217;s memory usage continues to grow after long periods of being open, you may want to consider periodically restarting Firefox to bring the memory usage back to reasonable levels.</p>
<p><a href="http://kb.mozillazine.org/Memory_Leak">http://kb.mozillazine.org/Memory_Leak</a></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.nulldevice.de/2008/05/yes-there-is-a-memory-leak/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

