From: Piotr Szotkowski Date: 2010-08-22T23:54:32+09:00 Subject: Re: YAML::dump slow --CUfgB8w4ZwR/yMy5 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Michael Fellinger: > If you're on 1.9.2, you could try the new YAML library psych: > iota ~ % time ruby -rpsych -e 'Psych.load(Psych.dump(Dir["/sys/**/*"]))' > 1.20s user 0.07s system 99% cpu 1.283 total What exactly do I need to have Psych on an Ubuntu/rvm install? chastell@devielle:~$ ruby -vrpsych -e '' ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux] :29:in `require': no such file to loa= d -- psych (LoadError) from :29:in `require' chastell@devielle:~$=20 (Note: I have libyaml-dev installed.) =E2=80=94 Piotr Szotkowski --=20 At the dentist=E2=80=99s thinking about whether hints of method size can be seen in intra-class dependency diagrams. Oh no, here comes the drill. [Michael Feathers] --CUfgB8w4ZwR/yMy5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkxxOh8ACgkQi/mCfdEo8UoYtACdGlmlTP0SxB97lKtKW5DmzwGk bOUAn2Q0wUIHHe+27UXuUsnhIXvelSIP =tmcd -----END PGP SIGNATURE----- --CUfgB8w4ZwR/yMy5--