CleanForFree
No edit summary
m ((username removed) (log details removed))
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
When you subclass stuff from MDrivenFramework you may need to implement a method called CleanForFree.
When you subclass stuff from MDriven Framework, you may need to implement a method called ''CleanForFree''.


The CleanForFree is part of a pattern and it is called once the object has been been decided to never be used again (ie Disposed).
The ''CleanForFree'' is part of a pattern and is called once it has been decided that an object will never be used again (i.e., disposed of).


The CleanForFree is a softer version of Dispose where you should release references kept so that Garbage collection will classify objects as deleted faster than if they are connected to other things. Think of CleanForFree as disassembling large objects structures like you would with normal garbage to make it decompose faster.
''CleanForFree'' is a softer version of ''Dispose'' where you release kept references so that the Garbage collection will classify objects as deleted faster than if they are connected to other things. Think of ''CleanForFree'' as disassembling large objects structures as you would with normal garbage to make them decompose faster.
[[Category:Advanced]]
[[Category:Advanced]]
[[Category:MDriven Framework]]
[[Category:MDriven Framework]]

Latest revision as of 05:59, 11 January 2024

When you subclass stuff from MDriven Framework, you may need to implement a method called CleanForFree.

The CleanForFree is part of a pattern and is called once it has been decided that an object will never be used again (i.e., disposed of).

CleanForFree is a softer version of Dispose where you release kept references so that the Garbage collection will classify objects as deleted faster than if they are connected to other things. Think of CleanForFree as disassembling large objects structures as you would with normal garbage to make them decompose faster.

This page was edited 107 days ago on 01/11/2024. What links here