From: Nokan Emiro Date: 2013-01-26T17:52:53+09:00 Subject: Re: Soft object reference for mark and sweep --e89a8fb1fd7e4d943204d42d2bb3 Content-Type: text/plain; charset=UTF-8 > Any ideas as to a good way or suitable mechanisms to implement this? Just a silly one: if you seldom use that Hash in the store, you can eliminate it. You could still lookup your objects by iterating trough ObjectSpace and find them. But this way the GC will be able to drop objects if there's no reference to them. Basically what you do here the same old stuff: a trade off between memory and CPU. You have to decide if lookup speed is more important than memory footprint or the other way around. (...or wait for a less silly answer here... :) --e89a8fb1fd7e4d943204d42d2bb3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
=C2=A0
Any ideas as to a good way or suitable mechanisms to implement this?

Just a silly one: =C2=A0if you seldom use that Ha= sh in the store, you can eliminate it. =C2=A0You could
still=C2= =A0lookup your objects by iterating trough ObjectSpace and find them. =C2= =A0But this way the
GC=C2=A0will be able to drop objects if there's no reference to th= em. =C2=A0Basically what you do here
the same=C2=A0old stuff: =C2= =A0a trade off=C2=A0between memory and CPU. =C2=A0You have to decide if loo= kup
speed is more important than memory footprint or the other wa= y around. =C2=A0(...or wait for a
less silly answer here... :)

--e89a8fb1fd7e4d943204d42d2bb3--