CleanForFree
(Created page with "When you subclass stuff from MDrivenFramework you may need to implement a method called CleanForFree. The CleanForFree is part of a pattern and it is called once the object h...") |
(Added Edited template with July 12, 2025.) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
When you subclass stuff from | {{Edited|July|12|2025}} | ||
<message>Write the content here to display this box</message> | |||
When you subclass stuff from MDriven Framework, you may need to implement a method called ''CleanForFree''. | |||
The CleanForFree is part of a pattern and | 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. | |||
[[Category:Advanced]] | |||
[[Category:MDriven Framework]] |
Latest revision as of 06:28, 20 January 2025
This page was created by Hans.karlsen on 2020-11-09. Last edited by Edgar on 2025-01-20.
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.