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...")
 
No edit summary
Line 4: Line 4:


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.
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.
[[Category:Advanced]]
[[Category:MDriven Framework]]

Revision as of 08:14, 2 December 2022

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 has been been decided to never be used again (ie Disposed).

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.

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