Posted by
Esteban A. Maringolo-2 on
Jan 13, 2005; 2:00am
URL: https://forum.world.st/become-and-oneWayBecome-tp3372645p3372652.html
Hola Diego:
"DiegoC" <
[hidden email]> wrote
>> Ok... so my problem now focues on how to speed up #oneWayBecome: or
>> assume that this is the way it works, and use it as it comes.
> I would suggest you to not use any kind of become for that purpose, if the
> problem is to get the realSubject of the proxy you could wrap it with the
> same proxy.
Do you say it by particular experience, or just becaus it smells "rare"?
> I mean, add an instance variable in the proxy and keep the
> real subject there, forwarding from the proxy. You shouldn't have many
> perfomance problem in that way.
No, I won't have performance problems, just one additional hop in the
message sequence[*].
One solution I had was having proxies instead of "mutational" stubs, the
proxy solution seemed to be more simple and stable, but the "mutational"
solution is seems more transparent, being those stub disposable, or "use it
once, become the real, and let the GC throw it away". The stability and
performance were the issues on which I had doubts.
[*] Unless message forwarding is handled by the VM or optimized somehow.
Thank you (gracias)
--
Esteban A. Maringolo