<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
				<title>Comments on: serialize() vs. var_export() vs. json_encode() Part 2</title>
		<link>http://www.phpdevblog.net/2009/11/serialize-vs-var-export-vs-json-encode-part-2.html</link>
		<description>serialize() vs. var_export() vs. json_encode() Part 2 Comment Feed</description>
				<language>de</language>
		<pubDate>Mon, 06 Sep 2010 07:06:25 +0000</pubDate>
		<generator>mcw[blog] 'Ruby' Alpha 3</generator>
		<item>
			<title>Comment #1 by: Jakob Ketterl</title>
			<link>http://www.phpdevblog.net/2009/11/serialize-vs-var-export-vs-json-encode-part-2.html#comment7396</link>
			<guid>http://www.phpdevblog.net/2009/11/serialize-vs-var-export-vs-json-encode-part-2.html#comment7396</guid>
			<author>Jakob Ketterl</author>			
			<pubDate>Wed, 18 Nov 2009 10:33:45 +0000</pubDate>
			<content:encoded><![CDATA[ i wouldn't say that none of these scales linear. it does look so in your graphs, but your x axis is not properly scaled - so it's hard to tell. ]]></content:encoded>
		</item>
		<item>
			<title>Comment #2 by: Jaimie Sirovich</title>
			<link>http://www.phpdevblog.net/2009/11/serialize-vs-var-export-vs-json-encode-part-2.html#comment7488</link>
			<guid>http://www.phpdevblog.net/2009/11/serialize-vs-var-export-vs-json-encode-part-2.html#comment7488</guid>
			<author>Jaimie Sirovich</author>			
			<pubDate>Fri, 20 Nov 2009 21:28:05 +0000</pubDate>
			<content:encoded><![CDATA[ The other thing you might want to look into is the performance with respect to recursion.  I've noticed that the 3 methods vary a lot with nesting.<br />
<br />
Unserialize seems to shine on recursive data.  JSON decode does a lot worse.  And for various reasons (both space and time?), the eval method does the worst.<br />
<br />
If you're dealing with read-biased data that's recursive, serialize is best &#8230; I think.  But YMMV.  Test it. ]]></content:encoded>
		</item>
		</channel>
</rss>