From: Piotr Szotkowski Date: 2010-11-03T15:48:41+09:00 Subject: Re: Process for optimizing ruby code --qFgkTsE6LiHkLPZw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Andrew Wagner: > So, I've got a chunk of code which needs optimizing. [=E2=80=A6] > That said, I'm wondering if there are any suggestions > out there for tutorials on using ruby-prof. My advice would be to check out perftools.rb=C2=B9 and the generated graphs, with the additional benefits of it having no profiling overhead and being able to see how much time garbage collection takes. You might also want to take a look at my Profiling Ruby slides=C2=B2 for example graphs. =C2=B9 https://github.com/tmm1/perftools.rb =C2=B2 http://profiling-ruby-rar-2010.heroku.com/ =E2=80=94 Piotr Szotkowski --=20 =E2=80=98Could we have Math::INFINITY which would make code using it cleane= r?=E2=80=99 =E2=80=98Ruby assumes the environment has native threading and US-ASCII compatible locale. Is there an environment which satisfies the conditions but does not have infinity?=E2=80=99 =E2=80=98NetBSD on VAX, I guess.=E2=80=99 =E2=80=98VAX! OK. I=E2=80=99m against introducing Math::INFINITY.=E2=80=99 [Marc-Andre Lafortune, Yugui, Tanaka Akira, ruby-core] --qFgkTsE6LiHkLPZw 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) iEYEARECAAYFAkzRBcAACgkQi/mCfdEo8UpdSQCgnm0wSs9kxQfWcbu07fcAHySJ Uj8AnjqXLFEczkgeF9SziQ6GIgxVpIuE =XSrR -----END PGP SIGNATURE----- --qFgkTsE6LiHkLPZw--