From: Konrad Meyer Date: 2007-09-24T04:36:55+09:00 Subject: Re: Object's allocated memory --nextPart3904477.pDEVkUUck2 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Quoth crb002@gmail.com: > I have an application where I need to sort objects based on their > memory footprint. What is the easiest way to get this information > from Ruby1.6 ? I have no problem with having to call some C functions > to get this info. >=20 > The hack Marshal.dump(foo).size() would work, but since this might be > called often I need an elegant solution. You also might want to fix your Ruby1.6 problem. 1.8.6 has been out for a while. =2D-=20 Konrad Meyer http://konrad.sobertillnoon.com/ --nextPart3904477.pDEVkUUck2 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBG9sBVCHB0oCiR2cwRAnLZAJ4pxFjyUGtxkJng7i7F2zQwzWCT5wCgtdzr j0qacXwNYl/AGQ9FM6mhgvc= =AZqN -----END PGP SIGNATURE----- --nextPart3904477.pDEVkUUck2--