ZAML is faster YAML serialization for Ruby
The Ruby YAML library is a full stack standard compliant implementation of the YAML protocol, while ZAML is an attempt to produce (effectively) the same output as YAML would have - but much faster and with cleaner code.
ZAML has been benchmarked at up to %1600 faster than YAML:
gnomecoder.wordpress.com/2008/09/27/yaml-dump-1600-percent-faster/ groups.google.com/group/rubyonrails-core/browse_thread/thread/3e33e31f57e23911/d2eedb7531a12e47?lnk=gst&q=zaml#d2eedb7531a12e47
## Installation
Add gemcutter to your sources if you haven’t done so already:
sudo gem install gemcutter
gem tumble
Install the gem:
sudo gem install zaml
## Usage
require 'zaml'
foo = { :some => { :complicated => [:data, :structure] } }
File.open('output.yml', 'w') { |f| ZAML.dump(foo,f) }
## License
Copyright © 2008-2009 ZAML contributers
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <www.gnu.org/licenses/>.