forked from hallettj/zaml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
55 lines (36 loc) · 1.79 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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>.