<?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"
	>
<channel>
	<title>Comments on: leaks Safari</title>
	<atom:link href="http://nslog.com/2007/12/09/leaks_safari/feed" rel="self" type="application/rss+xml" />
	<link>http://nslog.com/2007/12/09/leaks_safari</link>
	<description>The Weblog of Erik J. Barzeski</description>
	<pubDate>Fri, 05 Dec 2008 11:45:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: Tim Buchheim</title>
		<link>http://nslog.com/2007/12/09/leaks_safari#comment-44830</link>
		<dc:creator>Tim Buchheim</dc:creator>
		<pubDate>Mon, 10 Dec 2007 20:01:22 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2007/12/10/leaks_safari#comment-44830</guid>
		<description>Jake: That doesn't seem to leak on my system (running 10.5.1). It looks to me like Apple fixed it.

In my experience Safari 3 leaks less than Safari 2. And it leaks less on Leopard than it did on Tiger. With Safari 2 on Tiger I had to restart Safari at least once a day, or it would be using well over a gigabyte of real memory.

I think the Flash plugin leaks memory significantly, though.</description>
		<content:encoded><![CDATA[<p>Jake: That doesn't seem to leak on my system (running 10.5.1). It looks to me like Apple fixed it.</p>
<p>In my experience Safari 3 leaks less than Safari 2. And it leaks less on Leopard than it did on Tiger. With Safari 2 on Tiger I had to restart Safari at least once a day, or it would be using well over a gigabyte of real memory.</p>
<p>I think the Flash plugin leaks memory significantly, though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik J. Barzeski</title>
		<link>http://nslog.com/2007/12/09/leaks_safari#comment-44828</link>
		<dc:creator>Erik J. Barzeski</dc:creator>
		<pubDate>Mon, 10 Dec 2007 17:33:08 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2007/12/10/leaks_safari#comment-44828</guid>
		<description>[quote comment="44827"]I'm betting it's NSURL resourceDataUsingCache: NO, which has a low-level memory leak.[/quote]

From what I've read and tested it could also be sheets that leak. I just posted so people know to check and perhaps re-launch Safari from time to time given the long uptimes many Macs see.</description>
		<content:encoded><![CDATA[<p class="quote_header"><a href="http://nslog.com/2007/12/09/leaks_safari#comment-44827">Jake said</a> on December 10, 2007:</p>
<blockquote cite="http://nslog.com/2007/12/09/leaks_safari#comment-44827"><p>
I'm betting it's NSURL resourceDataUsingCache: NO, which has a low-level memory leak.</p>
</blockquote>
<p>From what I've read and tested it could also be sheets that leak. I just posted so people know to check and perhaps re-launch Safari from time to time given the long uptimes many Macs see.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake</title>
		<link>http://nslog.com/2007/12/09/leaks_safari#comment-44827</link>
		<dc:creator>Jake</dc:creator>
		<pubDate>Mon, 10 Dec 2007 16:37:18 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2007/12/10/leaks_safari#comment-44827</guid>
		<description>I'm betting it's NSURL resourceDataUsingCache: NO, which has a low-level memory leak.

Test code, compile and let run, watch process mem usage gradually increase:

Compile and run the following example code:

&lt;pre&gt;int main (int argc, const char * argv[]) {
	while( 1)
	{
		NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
		NSString *prefsBBURL = @"http://planetx.geneseo.edu/bb/";
		NSData *data;
		NSURL *url;
		// sorry about the pounding
		url = [NSURL URLWithString: prefsBBURL];
		data = [url resourceDataUsingCache: NO];
		[pool release];
	}
    return 0;
}&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I'm betting it's NSURL resourceDataUsingCache: NO, which has a low-level memory leak.</p>
<p>Test code, compile and let run, watch process mem usage gradually increase:</p>
<p>Compile and run the following example code:</p>
<pre>int main (int argc, const char * argv[]) {
	while( 1)
	{
		NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
		NSString *prefsBBURL = @"http://planetx.geneseo.edu/bb/";
		NSData *data;
		NSURL *url;
		// sorry about the pounding
		url = [NSURL URLWithString: prefsBBURL];
		data = [url resourceDataUsingCache: NO];
		[pool release];
	}
    return 0;
}</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
