baroquebobcat / zaml

Fast yaml serialization for Ruby: forked to add the ability to not use labels

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 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 <http://www.gnu.org/licenses/>.

About

Fast yaml serialization for Ruby: forked to add the ability to not use labels

License:Other


Languages

Language:Ruby 100.0%