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: http://gnomecoder.wordpress.com/2008/09/27/yaml-dump-1600-percent-faster/ http://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 (c) 2008-2009 ZAML contributers This program is dual-licensed under the GNU General Public License version 3 or later and under the Apache License, version 2.0. 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; or under the terms of the Apache License, Version 2.0. 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 and the Apache License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. You may obtain a copy of the Apache License at <https://www.apache.org/licenses/LICENSE-2.0.html>.
Project
zaml
A partial replacement for YAML, writen with speed and code clarity in mind. ZAML fixes one YAML bug (loading Exceptions) and provides a replacement for YAML.dump() unimaginatively called ZAML.dump(), which is faster on all known cases and an order of magnitude faster with complex structures.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
Dependencies
Project Readme