Full Version : Another question : Garbage collection & Attachment
xmlspawner >>XMLSpawner - Attachments >>Another question : Garbage collection & Attachment
<< Prev | Next >>
neizarr- 01-09-2007
I should have asked this in the efficiency section but forgot to.
How good is garbage collection with attachments? Ie, I plan to be using attachments all over the place, on items to store info, mobiles, players, etc. But as I'm sure you realize, all those things get deleted over time. What my main concern is regards what happens to attachments that are attached to them? Is the system such that it will delete the attachments when the item/mobile they are attached to is deleted? I hope so, since otherwise in a system with a large number of attachments on a large number of objects(items/mobiles) in the world, there would be a steady memory leak more or less due to orphaned attachments.
Thanks for any insight into this.
ArteGordon- 01-10-2007
yes, attachments are deleted if their parent object is deleted.
Every server save there is a check for orphaned attachments that are not attached to or owned by a valid object . Only valid attachments get saved, anything else is deleted.
There wont be any memory leaks.