<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: YAML vs Marshal performance</title>
	<atom:link href="http://significantbits.wordpress.com/2008/01/29/yaml-vs-marshal-performance/feed/" rel="self" type="application/rss+xml" />
	<link>http://significantbits.wordpress.com/2008/01/29/yaml-vs-marshal-performance/</link>
	<description>A log of things I find interesting and I don't want to forget</description>
	<lastBuildDate>Thu, 12 Nov 2009 14:46:59 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ruby benchmarks &#187; Kernel::rand</title>
		<link>http://significantbits.wordpress.com/2008/01/29/yaml-vs-marshal-performance/#comment-4846</link>
		<dc:creator>Ruby benchmarks &#187; Kernel::rand</dc:creator>
		<pubDate>Mon, 12 Oct 2009 03:09:28 +0000</pubDate>
		<guid isPermaLink="false">http://significantbits.wordpress.com/?p=16#comment-4846</guid>
		<description>[...] Link: http://significantbits.wordpress.com/2008/01/29/yaml-vs-marshal-performance/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Link: <a href="http://significantbits.wordpress.com/2008/01/29/yaml-vs-marshal-performance/" rel="nofollow">http://significantbits.wordpress.com/2008/01/29/yaml-vs-marshal-performance/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian</title>
		<link>http://significantbits.wordpress.com/2008/01/29/yaml-vs-marshal-performance/#comment-4790</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Tue, 30 Sep 2008 07:01:29 +0000</pubDate>
		<guid isPermaLink="false">http://significantbits.wordpress.com/?p=16#comment-4790</guid>
		<description>I tried your code with our YAML.dump replacement algorithm, code-named ZAML.dump[1]:

YAMLize hash: 2.592796 seconds
ZAMLize hash: 0.987091 seconds

The link below details a 16x improvement with real-world data.

[1] http://gnomecoder.wordpress.com/2008/09/27/yaml-dump-1600-percent-faster/</description>
		<content:encoded><![CDATA[<p>I tried your code with our YAML.dump replacement algorithm, code-named ZAML.dump[1]:</p>
<p>YAMLize hash: 2.592796 seconds<br />
ZAMLize hash: 0.987091 seconds</p>
<p>The link below details a 16x improvement with real-world data.</p>
<p>[1] <a href="http://gnomecoder.wordpress.com/2008/09/27/yaml-dump-1600-percent-faster/" rel="nofollow">http://gnomecoder.wordpress.com/2008/09/27/yaml-dump-1600-percent-faster/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramon Guiu</title>
		<link>http://significantbits.wordpress.com/2008/01/29/yaml-vs-marshal-performance/#comment-4746</link>
		<dc:creator>Ramon Guiu</dc:creator>
		<pubDate>Fri, 01 Feb 2008 23:37:09 +0000</pubDate>
		<guid isPermaLink="false">http://significantbits.wordpress.com/?p=16#comment-4746</guid>
		<description>Thanks for sharing. I guess, however, that you cannot serialize any object as JSON and then unserialize it as you loose the type information and therefore you are unable to reconstruct the original object. 
If you just need to serialize hashes, arrays and basic types then it&#039;s probably a better choice because, as you say, it allows you to store the context on the client if needed.</description>
		<content:encoded><![CDATA[<p>Thanks for sharing. I guess, however, that you cannot serialize any object as JSON and then unserialize it as you loose the type information and therefore you are unable to reconstruct the original object.<br />
If you just need to serialize hashes, arrays and basic types then it&#8217;s probably a better choice because, as you say, it allows you to store the context on the client if needed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Troy Kruthoff</title>
		<link>http://significantbits.wordpress.com/2008/01/29/yaml-vs-marshal-performance/#comment-4742</link>
		<dc:creator>Troy Kruthoff</dc:creator>
		<pubDate>Thu, 31 Jan 2008 21:50:38 +0000</pubDate>
		<guid isPermaLink="false">http://significantbits.wordpress.com/?p=16#comment-4742</guid>
		<description>I was curious as to how JSON would compare, so I added it to the tests:

Marshal hash: 0.12498 seconds
Reload marshalled hash: 0.145168 seconds
YAMLize hash: 3.655557 seconds
Reload YAMLize hash: 0.844616 seconds
JSONize hash: 0.183414 seconds
Reload JSONize hash: 0.211665 seconds


Marshal is still the clear winner, but JSON holds its own and is portable to store the state on the client (browser) as well.</description>
		<content:encoded><![CDATA[<p>I was curious as to how JSON would compare, so I added it to the tests:</p>
<p>Marshal hash: 0.12498 seconds<br />
Reload marshalled hash: 0.145168 seconds<br />
YAMLize hash: 3.655557 seconds<br />
Reload YAMLize hash: 0.844616 seconds<br />
JSONize hash: 0.183414 seconds<br />
Reload JSONize hash: 0.211665 seconds</p>
<p>Marshal is still the clear winner, but JSON holds its own and is portable to store the state on the client (browser) as well.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
