--qjNfmADvan18RZcF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Feb 09, 2009 at 07:15:35AM +0900, David A. Black wrote:
> 
> However, calling #intern/to_sym is (slightly) slower than just sending
> a string. This is Ruby 1.9.1:
> 
> Direct
>   0.150000   0.000000   0.150000 (  0.157290)
> Symbol
>   0.170000   0.000000   0.170000 (  0.166353)
> String
>   0.470000   0.000000   0.470000 (  0.476854)
> #intern
>   0.520000   0.020000   0.540000 (  0.537574)
> 
> So if you've got a string already, it's probably not worth doing the
> conversion explicitly.

It's probably worth it if you can organize your code to do explicity
conversion once vs. doing implict conversion through many iterations,
though.

-- 
Chad Perrin [ content licensed OWL: http://owl.apotheon.org ]
Quoth Anonymous: "It is easier to measure something than to understand
what you have measured."

--qjNfmADvan18RZcF
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (FreeBSD)

iEYEARECAAYFAkmUeZ4ACgkQ9mn/Pj01uKWKIwCeL+effKm/sHM0rWRi3Gc+uLXG
HiAAn1zT1iTUR7F+8QE1QHCD0AJ3YGeX
q
-----END PGP SIGNATURE-----

--qjNfmADvan18RZcF--