[DGD] Keeping track of clones

Felix A. Croes felix at dworkin.nl
Fri Aug 26 13:47:01 CEST 2005


Par Winzell <zell at skotos.net> wrote:

> > I am a little hazy on when exactly an object is swapped in. But from 
> > what you say I take it that doing and ob = find_object("/foo/bar#123") 
> > wouldn't swap that object in, if it was found? Only if I'd start calling 
> > functions in that object? Or only if I'd call functions that'd actually 
> > change its state? Or...?
>
> Any function call swaps it in, so traversing 100,000 clones in a linked 
> list takes a looong time. You can do find_object(), object_name(), 
> status() etc on objects without swapping them in, which is sometimes 
> enough for what you want to do.

The kfun status(), when used on an object, also swaps in part of it.
When the object has a pending callout, all of it will be swapped in.

Regards,
Dworkin



More information about the DGD mailing list