From: Juergen Strobel Date: 2006-07-04T00:53:09+09:00 Subject: Re: Ruby and Rails performance profiling? --W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 03, 2006 at 10:31:55AM +0900, Francis Cianfrocca wrote: > On 7/2/06, M. Edward (Ed) Borasky wrote: > > > >....could be > >either some fundamental constraint of the langauge semantics (which I > >doubt) or an optimization opportunity in the run-time to deal more > >efficiently with the semantics of the language. >=20 > If the opportunity is there, why hasn't someone seen it yet? I'll take ev= en > incremental improvements, but it seems unlikely that something really maj= or > has been missed. >=20 >=20 >=20 > Ah ... now searching is something we *can* optimize! >=20 > Searching can be improved but even so, it's a lot of work to do at runtim= e. > Languages that treat method dispatch as lookups into indexed tables have a > big edge. Even Python does this. Lisp (CLOS) has an even more complicated method dispatch than Ruby, since it may have to search up the parent classes of all parameters (multi dispatch) and MI is allowed. History shows this type of method dispatch can be highly optimized and be made very performant. It sure took some time for Lisp to reach this stage though. -J=FCrgen --=20 The box said it requires Windows 95 or better so I installed Linux --W/nzBZO5zC0uMSeA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iQEVAwUBRKk9Xvy64gyiEfXtAQIwcQgAu9vTECvWZEZ9kfW9JzKWkdaJddg1+zH7 3qBYdq6/J0IGSeoTl+fga5UbBX1LDGeVD/bweQ+h9zIJ3s1tkh5oBcbmski1xBYA jLNPeLAyOHw+IPgO6/fK2yfMsIVYkId30LzzNmWO9qk+gl4nKfYTn2cWxWQDzC3c FIaM8TBiDr3XqfziufrACq0ZrXnAx8v/uquvA9JOHoJ8xINMyVEHpdUlLbon7Vmv O8WNNffmcEi1661muH8iG6Mjgx0Bi5NVTovhiG2nuc6+ukNA5Xk0wHzYaJ7QlrpZ tM/2E8ZWMKdi2aV5B300HUVU2ZGSJ+cEXfOb113rjhBPfyvCht9Keg== =RcVl -----END PGP SIGNATURE----- --W/nzBZO5zC0uMSeA--