there are many places in the program that need to use closures, and I didn"t pay much attention to memory at the beginning of writing. Now that the program is finished, it is found that if the memory keeps increasing after running repeatedly, some things are not recovered by cg. The details are as follows
memory usage in running programs
you can see that only the part is recycled, but the part is still in memory (for example, Component has been * 1000).
because now that the program has been written and there is so much code, it is really difficult to find references in the code that cannot be recycled. Do you have any good methods or tools?